Skip to content
zenui/react-hooks

usePolling

Call an async function on an interval without overlapping calls. It pauses while the tab is hidden and backs off after errors, so it suits status checks and dashboards that cannot use a push connection.

Level
Advanced
Since
v2.1.0
import {usePolling} from '@zenuilabs/react-hooks';
Loading demo_

More in Realtime