mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-06 05:49:12 +02:00
Per-issue WS events (comments, activities, reactions, subscribers) were only handled by component-level useWSEvent hooks that unsubscribe on unmount. With staleTime: Infinity, this left timeline/reactions/subscribers caches silently stale — reopening an issue served cached data without refetching, causing missing comments in inbox and issue detail views. Add global fallback handlers in useRealtimeSync that invalidateQueries for the affected issue on every per-issue WS event, ensuring caches are marked stale even when IssueDetail is unmounted. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>