multica/apps/web/features/issues
Naiyuan Qing 060afc848c refactor(web): migrate reaction optimistic updates from cache to UI pattern
Replace cache-level optimistic updates (onMutate with temp IDs) with
TQ v5's UI-level pattern (useMutationState + render-time derivation)
for both issue-level and comment-level reaction toggles.

The cache-level approach caused a race condition: temp IDs in the cache
couldn't be deduplicated against real IDs from WS events, causing
reaction counts to briefly flash incorrect values (e.g. 0→1→2→1).

The UI pattern keeps the cache clean (always server-confirmed data) and
derives optimistic state at render time from pending mutation variables.
WS events safely update the cache without conflicting with temp data.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 15:35:52 +08:00
..
components Revert "feat(issues): add structured ticket search" 2026-04-08 15:15:08 +08:00
config feat(web): add kanban board + list view + filtering to My Issues page 2026-04-01 16:56:22 +08:00
hooks refactor(web): migrate reaction optimistic updates from cache to UI pattern 2026-04-08 15:35:52 +08:00
stores feat(web): add scope tabs to Issues and My Issues pages 2026-04-01 18:30:40 +08:00
utils Revert "feat(issues): add structured ticket search" 2026-04-08 15:15:08 +08:00
index.ts feat(web): add kanban board + list view + filtering to My Issues page 2026-04-01 16:56:22 +08:00
store.ts refactor(issues): migrate all consumers to TanStack Query (Phase 1, Commits 5-10) 2026-04-07 15:46:08 +08:00