Skip to content

How to use suspense with no throw error #6095

Answered by TkDodo
arcc1845 asked this question in Q&A
Discussion options

You must be logged in to vote

Is there any way to do this?

No, this is not possible per design. When using suspense, you'd expect data to be defined after you call the hook, because you don't need to handle loading states (handled by suspense boundary) and error states (handled by error boundaries). If we take error handling away, this wouldn't hold true.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arcc1845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants