hooks/useQueries.js -> .ts. Typed params and QueryParams-typed query builders (QueryParams now exported from api.ts). Query result data stays unknown until endpoint response shapes are typed. TypeScript caught dead config: three hooks passed `cacheTime` to useQuery, which React Query v5 renamed to `gcTime` and silently ignores — so those caches were garbage-collected at the 5-min default instead of the intended 30 min / 2 hr. Renamed to gcTime so the intended retention takes effect (memory-retention only; no fetch or correctness change). Verified: typecheck 0, lint 0 errors (47 warns), build green, 48 client tests, 17/17 e2e probe (every page renders). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| pages | ||
| public/img | ||
| App.jsx | ||
| api.ts | ||
| index.css | ||
| main.jsx | ||