Skip to content
zenui/react-hooks

useInfiniteScroll

Load the next page when a sentinel element at the end of a list scrolls into view. It never fires while a load is running, keeps loading while the sentinel stays visible, and stops after an error until you retry.

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

More in Async & Data