Replies: 1 comment
-
I think I more or less figured it out. Here is what I came up with: fetcher.js
ErrorBoundary.js
And then the usage is something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component structured like this with my
ErrorBoundary
wrapping mySuspense
element.The
MyList
component includes anSWR
data fetching hook as follows:My fetcher method throws an error as follows:
When the error happens, I don't know how to have my UI show the values thrown (that is, what is in the MyError class)
Beta Was this translation helpful? Give feedback.
All reactions