candle-annotator/openspec
Marko Djordjevic 73c88f8211 fix: resolve stale closures in CandleChart click handler
Convert drawingState, selectedLineId, dragState, and annotations to
refs that stay in sync with state via useEffect. The chart click handler
(subscribeClick) captured stale closure values for these variables.
Now reads from refs (e.g. drawingStateRef.current) so the handler
always sees the latest state, and removed the stale state variables
from the useEffect dependency array.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-18 15:15:24 +01:00
..
changes fix: resolve stale closures in CandleChart click handler 2026-02-18 15:15:24 +01:00
specs sync: ml-ui-connection delta specs to main specs 2026-02-18 10:21:05 +01:00
config.yaml starting planning 2026-02-12 09:42:55 +01:00