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'm trying to refetch a query when an error bubbles up to an error boundary:
<ErrorBoundaryFallbackComponent={ErrorFallback}><Suspensefallback={SuspenseFallback}><FetchingComponent/>{/* component throws when there is an error from the query */}</Suspense></ErrorBoundary>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to refetch a query when an error bubbles up to an error boundary:
ErrorFallback
is pretty basic:While clicking on
Try again
seems to remount the component, it does not cause a refetch. Is there a way to fix this?Beta Was this translation helpful? Give feedback.
All reactions