Frontend Error Handling

Global frontend error-handling patterns for Aetheron Connect V2 (apps/web): classifying errors before defaulting to unknown, narrowing transient network detection (TypeError / DOMException), toast cooldown for simultaneous failures, and threading server-resolved feature flags through client Providers. Use when: (a) editing `QueryProvider.tsx`, any `useActionErrorHandler`-style hook, React Query `MutationCache.onError` / `QueryCache.onError` wiring, or global toast handlers; (b) adding `isTransientNetworkError` / network-error detection logic, toast deduplication, or server→client feature-flag context plumbing; (c) the user pastes a runtime error stack trace, a "Failed to fetch" / "Load failed" / "TypeError" / "Network connection failed" report, or a reproduction of unexpected toast spam; (d) investigating "why is the user seeing five identical toasts", "real bug got swallowed as a generic toast", or "client and server defaults diverged" questions.

EllaLiu0401 Updated

File contents

EllaLiu0401/my-cursor-skills/tree/main/frontend-error-handling commit abbb4ea4d6

Frequently asked questions

npx skillmds@latest add ellaliu0401/frontend-error-handling