Skip to content
Discussion options

You must be logged in to vote

is having such wrapper components really the future canonical way for Suspense and error boundaries?

yes.

Your proposed solution doesn't work because useQuery is called outside of where the ErrorBoundary is rendered. This is kinda how error boundaries work in react - they throw it to the parent, so that's where the handling has to happen.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bennettdams
Comment options

Answer selected by bennettdams
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