Commit bc210f6
committed
fix(canvas): select from useWorkflowRegistry instead of subscribing whole
check-zustand-v5-selectors matched /use[A-Z]\w*Store\(/, and exactly one
Zustand store in the repo is not named with a Store suffix —
useWorkflowRegistry. So the store behind the canvas went unchecked, and two
bare whole-store subscriptions had accumulated in the action bar, re-rendering
it on every registry mutation (clipboard, hydration, pendingSelection,
activeWorkflowId). Every other call site in the repo already uses a selector.
Widens the pattern to (?:Store|Registry) and fixes both call sites. The
widened gate reports these two and nothing else, so there is no cleanup tail.1 parent 214a19d commit bc210f6
2 files changed
Lines changed: 8 additions & 3 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar
- scripts
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
0 commit comments