TanStackT
TanStack2y ago
2 replies
inadequate-blush

Can I set the amount of scrolling that triggers the next page for an infinite query?

I am using an Infinite query which automatically loads new data when I scroll to a certain point in the app. This is working well. But to improve perceived performance for the user, I wanted for it to already start loading a bit earlier during the scroll. Is there a way to already trigger fetching of the next page at an earlier scroll height than the default? I couldn't find a setting for it.
Was this page helpful?