Review fixes: - useMyStores throws on a failed response instead of resolving to [] — a transient 401/blip no longer looks like "no stores" and bounces an owner off their own dashboard (query stays in error/retry, keeps prior data). - Add useRequireOwner() guard and apply it to the owner-only routes (financial-dashboard + its cash-funds/reports/transactions sub-routes and shipping-method) so staff who hit those URLs directly are redirected to the dashboard. (Financial data was already backend-protected; this is the matching client-side gate.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| use-prefetch.ts | ||
| use-root-data.ts | ||
| use-toast.ts | ||
| useBadgeCounts.ts | ||
| useCarousel.ts | ||
| useDebounce.ts | ||
| usePushNotifications.ts | ||
| useStoreOwnership.ts | ||
| useWebSocket.ts | ||