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 that useQuery needs to track if it's been unmounted to avoid stale updates.
We're seeing:
Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all sub
And I think it's coming from useQuery. I think the setState calls need to be conditional based on some variable that we toggle from true to false when the component gets updated.
I think that
useQuery
needs to track if it's been unmounted to avoid stale updates.We're seeing:
And I think it's coming from
useQuery
. I think thesetState
calls need to be conditional based on some variable that we toggle fromtrue
tofalse
when the component gets updated.Much like this
usePromise
example: https://gist.github.com/mjackson/05c7749430d0ec87b66612733805bad6.Happy to make the PR if you're happy with this proposal?
The text was updated successfully, but these errors were encountered: