Skip to content

Commit 6302a07

Browse files
committed
comments for more info
1 parent acb1ead commit 6302a07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/examples/InfiniteListSimple.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function SimpleInfiniteList() {
2323
// When there is an error, we stop infinite loading.
2424
// It can be reactivated by setting "error" state as undefined.
2525
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.
2629
rootMargin: '0px 0px 400px 0px',
2730
});
2831

0 commit comments

Comments
 (0)