Temporary. Row grouping re-expands whenever the browser regains focus, for both the toolbar EXPAND buttons and the per-row +/-. set_depth() and per-node expansion both live on the view rather than in ViewConfig, so a rebuilt view loses them -- but nothing so far distinguishes "the view was rebuilt" from "the re-apply lost its race with the redraw". Tags each view object with an id via a WeakMap and logs it at every point that could rebuild one: focus/visibilitychange/pageshow, config-update, applyDepth, the theme effect, and initViewer. A changed id across a refocus means the view was discarded; an unchanged id means the depth re-apply itself is at fault. Each bail-out in the refocus handler now says which branch it took, which also shows whether expandDepthRef was ever set. Prefix [pf-depth]. Revert this commit once the cause is known. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Baseline.jsx | ||
| Forecast.jsx | ||
| Login.jsx | ||
| Setup.jsx | ||