Commit 5b4500a
fix: resolve React lint errors in canvas and save-template-overlay
- Replace useState/useEffect mounted pattern with useSyncExternalStore
for hydration-safe client detection
- Wrap setAgentState in useCallback to stabilize effect dependencies
- Replace ref-during-render with state+effect for pending_template capture
- Fix ConfirmChangesProps types (remove any, drop unused args prop)
- Add eslint-disable for intentionally scoped effect dependencies
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a1ed936 commit 5b4500a
File tree
2 files changed
+461
-10
lines changed- apps/app/src
- app/canvas
- components/generative-ui
2 files changed
+461
-10
lines changed
0 commit comments