The preview primitive in SpanAnnotationManager was stored in useState, causing unnecessary re-renders and potential memory leaks since the primitive was not cleaned up on unmount. Changed to useRef, updated all read/write sites, removed from dependency arrays, and added unmount cleanup effect that detaches the primitive from the series. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| archive | ||
| code-review-fix | ||