The paginated/filtered ledger (the race-prone data) moves to a useBankLedger query keyed on account/flow/page/query/sort — React Query handles caching, dedup, cancellation and out-of-order responses, replacing the manual request-id guard. Optimistic categorize routes through a setLedger setQueryData wrapper; loadLedger is the query's refetch (mutations + Refresh); the refresh button uses isFetching. Mount-once categories/bills stay local loads. This completes R5 — all 7 manual-fetch pages are on React Query. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| useAuth.jsx | ||
| useAutoSave.js | ||
| useAutoSave.test.jsx | ||
| useQueries.js | ||
| useSearchPanelPreference.js | ||