Skip to content
zenui/react-hooks

useAsyncRetry

Run an async function and retry it when it fails, with a fixed delay or backoff. Use it for flaky network calls that usually succeed on a second try.

Level
Intermediate
Since
v1.0.0
import {useAsyncRetry} from '@zenuilabs/react-hooks';
Loading demo_

More in Async & Data