Vitron-Front/app/hooks
fazli 31bc9f3c7b fix(push): include underlying error text in subscribe failure toast
Sellers running from an installed PWA still hit failures inside subscribe
(iOS 16.4+ PWA has its own quirks even when standalone), and a generic
"لطفاً چند لحظه بعد دوباره تلاش کنید" doesn't tell whoever is helping
them what actually broke. The catch handler now surfaces the underlying
Error.message (e.g. "timeout: pushManager.subscribe", "NotAllowedError")
in the toast description so field debugging works over screenshots.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-19 16:22:50 +00:00
..
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 fix(notif+auth): camelCase badge fields, seller push prompt, only 401 signs out 2026-07-18 13:18:08 +00:00
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(push): include underlying error text in subscribe failure toast 2026-07-19 16:22:50 +00:00
useStoreOwnership.ts fix(store): don't bounce owners home, stop cross-user myStores cache 2026-07-18 13:18:23 +00:00
useWebSocket.ts feat(chat+push): image attachments, day-labeled inbox with reply state, sub self-heal 2026-07-19 13:22:44 +00:00