<ErrorBoundary> not working as intended when using useSuspenseQuery #8239
-
I'm trying to set up my app to useSuspenseQuery but I'm running into issues with the error handling. I read the latest docs and to my knowledge I'm doing everything as prescribed. I've set up a minimal recreation of the issue.
I have my query:
...where dataSource.fetchGroups just makes an API call to an endpoint that throws 404 error. And finally, I have my component:
When fetching, it displays the loading fallback as expected, and the query retries twice as expected. But after the retries fail, instead of displaying fallbackRender as expected, the error propagates all the way up. So basically, I get three of these:
And then this:
And then 2 of these:
I'm sure I'm doing something wrong here, but I can't tell what. I've looked at the suspense example: And the docs, but I can't figure out what's going on here. Any help would be massively appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured it out. Had a custom that was causing issues. |
Beta Was this translation helpful? Give feedback.
Figured it out. Had a custom that was causing issues.