Files
KomediruzeckiandGitHub 3b6f071572 perf: eliminate page-reload UX on mutations and navigation (#317)
* perf: eliminate page-reload UX on mutations and navigation

Phase 1 — Background refresh (no content-destroying spinner):
- Transactions, Dashboard, Goals, Accounts, Portfolio, Loans, Bills,
  Housing, Retirement, Counterparties: replace setLoading(true)/false
  with initialLoad signal — existing data stays visible during re-fetch
- Render spinner only on first-ever load (no data yet), not on every
  mutation or navigation return

Phase 2 — Keep-alive page mounting (no destroy on nav):
- App.tsx: replace <Show when={activePage === name}> with CSS visibility
  toggle — pages stay mounted after first visit
- Track visited pages via mountedPages signal, mount on first access
- Navigation is instant: no remount, no re-fetch, preserved scroll

11 files, typecheck + lint + build all pass.

* docs: update plan status, gitignore CLAUDE.md

* fix: falsy-empty-array checks in Counterparties and Retirement

!array is always false for empty arrays (arrays are truthy in JS).
Changed to .length === 0 so the loading spinner actually renders
during initial fetch instead of showing empty-state prematurely.

* fix: remove unused eslint-disable directive in idb.ts
2026-07-14 16:29:42 +02:00
..