Files
t3code/apps/web/src/components
Cursor AgentandJulius Marminge 004658797e Fix store reactivity: stable dispatch ref, reactive terminal state, no-op guard
- useStore(): wrap dispatch actions in useMemo so the reference is stable
  across renders, preventing infinite effect loops in EventRouter
- Sidebar: subscribe to terminalStateByThreadId data instead of the
  getTerminalState function reference so terminal indicators re-render
- reduceThreadTerminalState: return original state (not normalized copy)
  for no-op actions so the reference equality guard in applyTerminalAction
  can short-circuit unnecessary store updates

Co-authored-by: Julius Marminge <[email protected]>
2026-03-02 18:40:49 +00:00
..
2026-02-28 15:17:03 -08:00
2026-02-28 15:17:03 -08:00
fmt
2026-02-26 16:58:27 -08:00