Commit 6740f27
authored
fix(deploy-control): stabilize empty deployments selector (#33)
Replace inline `?? []` fallback with a module-scope readonly empty array so the zustand selector returns a stable reference, fixing the React 19 / Next.js 16 `getSnapshot should be cached to avoid an infinite loop` console error in DeployControl.
Supersedes #25, #41, #42.1 parent b699e8a commit 6740f27
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments