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
fix(useQuery): continue retries if query unmounts and remounts (#3032)
* fix(useQuery): continue retries if observer unmount and remount
if we are waiting for a retry to happen, unsubscribing he last observer will cancel retries and just return the error; however, if a new observer subscribes in the meantime, we should continue with the ongoing retries.
this is especially important with "strict effects" in react18, where effects are run twice and thus observers are always unsubscribed and re-subscribed immediately.
* fix(useQuery): continue retries if observer unmount and remount
add another test to include query cancellation
0 commit comments