@fsmxjs/async ยท error + retry

Data Fetch

A fetch that can fail. The machine owns every state โ€” idle, loading, success, error โ€” and a guard prevents retrying past the limit. No scattered flags, no isLoading/isError booleans, no useEffect deciding what happens next.

interactive demo
state idle
retries 0 / 3
๐Ÿ“ก API calls with loading, success, and error states
๐Ÿ” Retry logic with an attempt limit
๐Ÿ“‹ Form submissions with server-side validation errors
๐Ÿ”’ Auth flows: unauthenticated โ†’ authenticating โ†’ authenticated