We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c47f1c commit b763a64Copy full SHA for b763a64
src/useInfiniteScroll.ts
@@ -18,7 +18,8 @@ export interface UseInfiniteScrollHookArgs {
18
// If the list has more items to load.
19
hasNextPage: boolean;
20
// The callback function to execute when the 'onLoadMore' is triggered.
21
- onLoadMore: Function;
+ // eslint-disable-next-line no-undef
22
+ onLoadMore: VoidFunction;
23
// We pass this to 'IntersectionObserver'. We can use it to configure when to trigger 'onLoadMore'.
24
rootMargin?: string;
25
// Flag to stop infinite scrolling. Can be used in case of an error etc too.
0 commit comments