Fix Synchronous setState in useEffect - SmartJointPlacer #7

Closed
opened 2026-06-06 21:06:33 +00:00 by Mark · 0 comments
Owner

setDetectedPoints([]) called synchronously in useEffect.

File: src/pages/editor/EditorScene.tsx:692

Fix: Move initialization to useMemo or lazy initializer, or use useLayoutEffect if DOM measurement needed.

`setDetectedPoints([])` called synchronously in `useEffect`. **File:** `src/pages/editor/EditorScene.tsx:692` **Fix:** Move initialization to `useMemo` or lazy initializer, or use `useLayoutEffect` if DOM measurement needed.
Mark closed this issue 2026-06-14 09:17:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/kimi_agent_hero_forge_slice_issue#7
No description provided.