Skip to content

fix documentation on status for suspense hooks #9008

New issue

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

Merged
merged 2 commits into from
Apr 12, 2025
Merged

Conversation

Gpx
Copy link
Contributor

@Gpx Gpx commented Apr 12, 2025

Following the discussion on #9001 this PR updates the reference documentation for useSuspenseQuery, useSuspenseQueries and useSuspenseInfiniteQuery to reflect the fact that status can also be "error".

More info on when this can happen is already in the documentation here: https://github.com/TanStack/query/blob/main/docs/framework/react/guides/suspense.md#throwonerror-default

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Apr 12, 2025
@TkDodo TkDodo merged commit 376bbd2 into TanStack:main Apr 12, 2025
1 check passed
@Gpx Gpx deleted the suspense-docs branch April 12, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants