Fix circular import: extract findAllPostsInTopicQueryData

Move findAllPostsInTopicQueryData out of the screen file and into a state-only module. post-shadow.ts is loaded early in app boot, but its top-level import of #/screens/Topic dragged TabBar.web.tsx (and the rest of the view chain) along with it — and the chain re-entered #/alf before its 'web' export had finished initializing, throwing 'Cannot read properties of undefined (reading web)' at first paint. Same query key, same behavior; the function lives at #/state/queries/topic-feed and is shared via TOPIC_FEED_QUERY_KEY_ROOT so Topic.tsx and post-shadow can't drift.


Author Rudy Fraser Date Commit Parent 1b89101a
+33 -27
3 changed files
+33 -27
3 changed files