Skip to content
zenui/react-hooks

useCachedFetch

Stale-while-revalidate data fetching with a cache shared by every component. Cached data renders instantly while a background request refreshes it.

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

More in Async & Data