mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-04 00:47:02 +01:00
staleTime
This commit is contained in:
1 parent
6a8e7d53f9
commit
1620b24ff3
4 files changed
+30
-12
No files matched your search
@@ -74,6 +74,11 @@ Verify mutations `invalidateQueries`; consider optimistic insert so reviews appe
|
||||
---
|
||||
|
||||
## Implementation status
|
||||
- [x] Q2 — `useCategories()` query hook (`api/queries/useCategories.ts`, key
|
||||
`queryKeys.categories()`, 30 min `staleTime`). Replaced raw
|
||||
`api.get('categories/')` + `useState`/`useEffect` in `App.tsx` with the hook;
|
||||
dropped the now-unused `api` import. Cached + shared across mounts. `tsc` +
|
||||
ESLint (0 errors) clean.
|
||||
- [x] R1 + R2 + Q1 — notif menu dedup + i18n + SPA nav. Extracted shared
|
||||
`<NotificationMenu>` (`components/layout/NotificationMenu.tsx`) + `useNotificationClick()`
|
||||
hook (`hooks/useNotificationClick.ts`); `App.tsx` and `NavSidebar.tsx` now both render
|
||||
|
||||
Reference in new issue
Block a user