What problem does it solve?
Standardizes frontend error handling for asynchronous sequences and rendering-time exceptions to reduce inconsistent user messages, deep try-catch nesting, and fragile UI failures.
Core Features & Use Cases
- Pattern guidance for sequential dependent mutations using AsyncResult and tryCatchAsync to treat errors as values and preserve linear control flow.
- Recommendations for independent parallel tasks using Promise.allSettled and for single API calls where simple try-catch is preferable.
- ky HTTPError status-code branching for user-friendly messages and ErrorBoundary integration for isolating render-time throws and providing UI fallbacks.
- Typical use case: implement robust order creation → payment → delivery flows with clear domain messages and ErrorBoundary-wrapped UI sections.
Quick Start
Analyze a three-step order creation, payment, and delivery flow and produce concrete AsyncResult + tryCatchAsync implementations, ky HTTPError handling for 400/409/422 responses, and suggested ErrorBoundary placements for each UI section.