Files
t3code/apps
olafuraandClaude Opus 4.8 21ca57b213 feat(mobile): lazy-load older thread history on scroll-up
Mobile consumed the windowed thread detail with no way to fetch older
activities, silently truncating history. Mirror the web lazy-load:

- useThreadComposerState: older-activity state + a thread-keyed in-flight ref
  guard, a reset effect on thread switch, and loadThreadActivities with the same
  union cursor. Older pages are deduped (against prior pages and the live window)
  and prepended into the feed; initial hasMore comes from the server's
  hasMoreActivities flag.
- ThreadFeed: onStartReached triggers the load, maintainVisibleContentPosition
  anchors the viewport on prepend, and the header shows a spinner while loading.
- Forward the values through ThreadRouteScreen → ThreadDetailScreen.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-20 17:26:29 +02:00
..