You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suspense is enabled when calling useSWR, and an error is thrown inside the fetcher function when attempting to fetch.
The error isn't being re-thrown by SWR, or reported as an uncaught error, and I am unable to handle it in an Error Boundary.
Expected Behavior
I would expect SWR to re-throw the error thrown in the fetcher function, and for me to be able to handle it with an Error Boundary, or for it to be reported as an uncaught error.
Instead, the error is not surfaced by SWR and is "swallowed".