Vitron-Front/app/hooks
Arda Samadi bb44ebf0e5 fix(seller-team): guard owner-only routes + robust useMyStores
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>
2026-07-01 17:04:06 +03:30
..
use-prefetch.ts first 2026-04-29 01:44:16 +03:30
use-root-data.ts first 2026-04-29 01:44:16 +03:30
use-toast.ts first 2026-04-29 01:44:16 +03:30
useBadgeCounts.ts feat(notifications): web push opt-in + unread nav badges 2026-06-17 14:02:56 +03:30
useCarousel.ts first 2026-04-29 01:44:16 +03:30
useDebounce.ts first 2026-04-29 01:44:16 +03:30
usePushNotifications.ts fix(notifications): read camelCase publicKey from VAPID endpoint 2026-06-17 12:06:35 +00:00
useStoreOwnership.ts fix(seller-team): guard owner-only routes + robust useMyStores 2026-07-01 17:04:06 +03:30
useWebSocket.ts first 2026-04-29 01:44:16 +03:30