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
I think this is tricky – when a component throws and gets caught by the error boundary, the hooks will be unmounted so you can't re-render anymore. The same applies to a Suspense boundary as well.
Bug report
Description / Observed Behavior
If revalidateOnFocus and suspense are used together, when an error occurs onfoucs listeners are never cleaned up
Expected Behavior
When errors are caught in error boundary, onfocus listeners are cleaned up, a page refocus never triggers a revalidation.
Additional Context
SWR version: 0.5.5
The text was updated successfully, but these errors were encountered: