Siddharth Kumar Sah
748ac607bc
fix: sync stepsRef during render, not useEffect
...
Child component effects (Controls onChange) fire before the parent's
useEffect that synced stepsRef. This caused updateStepSettings to read
stepsRef.current as [] and wipe out newly added steps.
Fix: assign stepsRef.current = steps directly during render so the
ref is always current before any child effects execute.
2026-03-28 17:02:24 +08:00
..
2026-03-28 11:19:09 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 16:04:42 +08:00
2026-03-26 01:10:51 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-26 17:33:17 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 17:02:24 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 15:40:39 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 16:04:42 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 11:19:09 +08:00
2026-03-28 16:04:42 +08:00