multica/apps/web/features
Naiyuan Qing 240813c605 fix(web): add global WS handlers for per-issue cache invalidation
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>
2026-04-08 15:21:14 +08:00
..
auth fix(auth): persist browser session during CLI login flow 2026-04-08 10:22:19 +08:00
editor fix(editor): align IssueMentionCard styling and behavior with Tiptap 2026-04-08 13:47:03 +08:00
inbox fix: restore TQ consumer migrations lost during merge with main 2026-04-07 18:59:09 +08:00
issues Revert "feat(issues): add structured ticket search" 2026-04-08 15:15:08 +08:00
landing refactor: remove agent triggers config field (#469) 2026-04-07 22:02:28 +08:00
modals feat(core): migrate workspace + runtimes to TanStack Query (Phase 3+4) 2026-04-07 17:19:52 +08:00
my-issues feat(core): migrate workspace + runtimes to TanStack Query (Phase 3+4) 2026-04-07 17:19:52 +08:00
navigation feat(ui): route persistence, sidebar active fix, header spacing 2026-03-26 10:57:32 +08:00
realtime fix(web): add global WS handlers for per-issue cache invalidation 2026-04-08 15:21:14 +08:00
runtimes fix: restore TQ consumer migrations lost during merge with main 2026-04-07 18:59:09 +08:00
skills feat(core): migrate workspace + runtimes to TanStack Query (Phase 3+4) 2026-04-07 17:19:52 +08:00
workspace feat(core): migrate workspace + runtimes to TanStack Query (Phase 3+4) 2026-04-07 17:19:52 +08:00