Files
t3code/apps/web
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-19 01:42:56 -08:00
2026-02-19 01:42:56 -08:00