useSuspenseInfiniteQuery triggers loading state when fetching additional pages #8178
Unanswered
withintheruins14
asked this question in
Q&A
Replies: 1 comment 1 reply
-
hmm, maybe I need |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've implemented an infinite scroll where the first page is prefetched on the server and
useSuspenseInfiniteQuery
is used in the client to read the prefetched data. It works for the initial load but when the infinite scroll fetches the next page the suspense boundary enters a loading state - it's weird because the table turns into a spinner. How can I prevent the suspense boundary from doing this after the initial data is present? Thanks!Beta Was this translation helpful? Give feedback.
All reactions