useInfiniteScroll
Fire a callback when a sentinel element scrolls into view.
See useInfiniteScroll with a live demouseInfiniteScroll<
T>(callback,options?):RefObject<T>
Type Parameters
T
T extends HTMLElement
Parameters
callback
() => void
options?
IntersectionObserverInit = ...
Returns
RefObject<T>