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> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| vendor | ||
| .gitignore | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.