TanStackT
TanStack3y ago
6 replies
uncertain-scarlet

Fetching infinite query data without any UI action to invoke fetchNextPage

Hi, I have a use case where I need to call a paginated API but I need to show all the data at once on UI instead of asking the user to load the next page. Since I can't invoke the api to return all data at once, is there a way to achieve this by fetching all pages in the background without any use interaction?
Was this page helpful?