8e06d4549d14ecbb1d49c67277f0a7865f628f12
The feature-flags query previously sat at ['documents', 'feature-flags'], which the hub's useRealtimeInvalidation([['documents']]) registration matched via TanStack's default prefix matching. Every document socket event refetched the flag, silently defeating the 5-minute staleTime. Move the key to ['documents-feature-flags'] so it sits outside the prefix; document events no longer trigger a flag refetch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
98.7%
HTML
1%
CSS
0.1%
Shell
0.1%