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
Encountered while seeing strict effects being enabled, which might mount and unmount multiple times. The situation is:
component mounts, we fetch
fetch errors, we wait for retry (set retryDelay to a high time)
now, component unmounts and remounts
this "cancels" the retry, but the component stays in fetching state
--> once the retrier continues, it sees that the retry has been cancelled and just returns the error, but in fact, it should continue to retry because a new observer has mounted.
Potential solution is to expose a continueRetry method, which will undo the cancelRetry (its just a flag that is set to true) so that the retrier can continue. We can invoke this when we try to fetch but are already in fetching state and thus just return the current promise.
The text was updated successfully, but these errors were encountered:
Describe the bug
Encountered while seeing
strict effects
being enabled, which might mount and unmount multiple times. The situation is:--> once the retrier continues, it sees that the retry has been cancelled and just returns the error, but in fact, it should continue to retry because a new observer has mounted.
Potential solution is to expose a
continueRetry
method, which will undo thecancelRetry
(its just a flag that is set totrue
) so that the retrier can continue. We can invoke this when we try to fetch but are already in fetching state and thus just return the current promise.The text was updated successfully, but these errors were encountered: