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 acb1ead commit 6302a07Copy full SHA for 6302a07
example/examples/InfiniteListSimple.tsx
@@ -23,6 +23,9 @@ function SimpleInfiniteList() {
23
// When there is an error, we stop infinite loading.
24
// It can be reactivated by setting "error" state as undefined.
25
disabled: !!error,
26
+ // `rootMargin` is passed to `IntersectionObserver`.
27
+ // We can use it to trigger 'onLoadMore' when the sentry comes near to become
28
+ // visible, instead of becoming fully visible on the screen.
29
rootMargin: '0px 0px 400px 0px',
30
});
31
0 commit comments