25b2e274becae07d761911900864b0719badee96
useAuthor and useEventStats were firing individual queries simultaneously with the batch hooks (useAuthors, useBatchEventStats), causing a flood of concurrent relay subscriptions. Each NoteCard's useAuthor created its own kind:0 query even though useAuthors in Feed.tsx was about to fetch the same data in a single batched query. Fix: Use useIsFetching to detect when a batch query is in-flight and disable individual queries until the batch completes. The batch seeds individual cache entries, so useAuthor/useEventStats resolve instantly from cache without ever firing their own relay queries. On pages without batch queries (PostDetailPage, NotificationsPage, etc.), batchFetching === 0 immediately, so individual hooks fire normally. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
Description
Languages
TypeScript
95.7%
Java
1.5%
JavaScript
0.9%
Swift
0.9%
CSS
0.5%
Other
0.4%