mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
The useShallow wrapper was not preventing infinite loops because the selector created new object references on every store update. Fixed by: 1. Selecting the agents Map directly (stable reference) 2. Deriving childAgents array in useMemo with proper dependencies The Map only changes when agents are added/removed, preventing unnecessary re-renders that were causing the infinite loop. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>