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
Endpoints with sideEffects are not safe to retry, as it cannot be guaranteed where they failed - which means issuing them multiple times could result in undesirable effects!
'hard' errors indicate they should not be ignored. Most commonly this indicates there is a real problem that won't be fixed by refetching - for instance if the fetch is not authorized. In these cases, retrying would simply delay the inevitable.
'soft' errors on the other hand often indicate transient issues like a flaky wifi connection.
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
-
Mechanics
Endpoints with sideEffects are not safe to retry, as it cannot be guaranteed where they failed - which means issuing them multiple times could result in undesirable effects!
'hard' errors indicate they should not be ignored. Most commonly this indicates there is a real problem that won't be fixed by refetching - for instance if the fetch is not authorized. In these cases, retrying would simply delay the inevitable.
'soft' errors on the other hand often indicate transient issues like a flaky wifi connection.
Implementation
(retry, { error, count }) => setTimeout(retry, 20)
Due to network offline
If something is being retried - it must be considered 'in flight' for network manager
Beta Was this translation helpful? Give feedback.
All reactions