Remove resolvedTheme from the chart initialization useEffect dependency array so theme changes no longer destroy and re-create the entire chart. Add a separate useEffect that calls chartRef.current.applyOptions() with the new layout, grid, timeScale and rightPriceScale colors whenever resolvedTheme changes, avoiding the memory leak and flicker caused by full chart reconstruction on every theme toggle. Closes task 8.2. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| changes | ||
| specs | ||
| config.yaml | ||