We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the docs, when using usePaginatedQuery with suspense: true only the initial load should actually "suspend":
usePaginatedQuery
suspense: true
suspense: Boolean Optional Set this to true to enable suspense mode. When true, useQuery will suspend when status === 'loading' When true, useQuery will throw runtime errors when status === 'error'
suspense: Boolean
true
useQuery
status === 'loading'
status === 'error'
Unfortunately, it seems it's not the case and rendering is suspended also when trying to fetch consecutive pages.
I created a codesandbox for demo purposes: https://codesandbox.io/s/flamboyant-surf-eioh6?file=/src/Todos.tsx
The text was updated successfully, but these errors were encountered:
No branches or pull requests
According to the docs, when using
usePaginatedQuery
withsuspense: true
only the initial load should actually "suspend":Unfortunately, it seems it's not the case and rendering is suspended also when trying to fetch consecutive pages.
I created a codesandbox for demo purposes: https://codesandbox.io/s/flamboyant-surf-eioh6?file=/src/Todos.tsx
The text was updated successfully, but these errors were encountered: