mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-09 02:24:11 +08:00
- Add mountedRef to track component mount state in useWebSocket hook - Guard handleMessage callback to return early if component is unmounted - Set mountedRef.current = false in useEffect cleanup function This addresses finding perf-011 about potential memory leaks from setState on unmounted components. The mounted ref provides a defensive check to ensure no state updates occur after component unmount. Related: code review group G03 - Critical Memory Leaks