-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch loop on repeated mounting and un-mounting #8
Comments
Interesting indeed. I wonder if we could get this to happen in a simple codesandbox that I can debug? |
Great idea - i will prepare one |
@tannerlinsley after many failed attempts to try and reproduce it in codesandbox , i've updated react and react-query package and the problem was gone.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've noticed a strange behaviour on repeated mounting and un-mounting.
What happens is that i have tabs component that mounts a specific components on every tab change,
so every time i switch between tabs, the current tab component is mounted again.
I'm using useQuery on each components to fetch the relevant information for the current tab.
When i'm doing the following actions the useQuery getting into fetch loop that never ends.
See the video below:
https://streamable.com/a90vs
Hope i'm clear enough, let me know if you need more information in order to reproduce it.
Thank you so much!
The text was updated successfully, but these errors were encountered: