-
Notifications
You must be signed in to change notification settings - Fork 5
Cannot update a component (ReactQueryDevtools
) while rendering a different component
#4
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
Comments
I'll try to re-produce this and see what's going on. Can you share the repo to where this is happening or is it private? |
I've created simple repo for reproduction here btw, while I have you on the line, I have troubles seeing values in Data explorer. I've tried Arc, Chrome and Safari. Is it because of dark mode? |
Yea, I haven't added support for dark mode. I'm surprised it changes the colors though. I'll have a look at that thank you. |
Same error here, didn't managed to locate the exact problem for the moment |
And for this issue, I think you should define a color, to prevent the darkMode to put its own color |
Yea, when I was building this I ran into it a few times but couldn't figure out what exactly the problem was. |
If you want to make a PR for this that would be awesome. I've been so busy lately I haven't had time to do anything. |
Anybody found a fix for this? As far as I can tell it appears as though the connect method is refreshing and causing the whole thing to re-render |
I am also experiencing this problem, if I can do anything to help please let me know. I am using the Docker image by the way. |
I just took a small looks on the code, from what I see, there's several states that get updated, here is a summary of states:
I don't feel that there's any strange state behaviour, since there are all unsubscribed when needed, and are subscribes to basic events. I don't really have time to go deeper, I don't know if @LovesWorking is free to debug this |
Hey, little update to say that I'm not getting the error anymore since couple of time. It doesn't seems to come from an update here, so it was maybe related to react-query itself ? |
Are you using this for React Native? I'm working with the Tanstack Query team to see how we can use the official Tanstack Query dev tools UI instead. We'll have an Expo plugin which just works with no effort. |
I'm not actually. I'm on Ionic + Capacitor.js |
Awesome! This new external sync will be the official dev tools interface while allowing any type of communication between devices to sync the data. It should be released hopefully by Monday. |
Ok, it seems really nice ! Does it means that we gonna have also the "mutation" tab working ? :) |
Yes. |
@navalex waiting on PR TanStack/query#8846 to update Tanstack query. It's pretty much done for Expo, then I'll be adding support for any other type of web socket / playform. |
@navalex can you please test it and let me know if it works for you. https://github.com/LovesWorking/rn-better-dev-tools Make sure to copy the react-query-external-sync folder and paste it into your app repo and then call this hook
After that, run the App, then start or re-start your native apps and they should connect. Make sure you also install the socket io client for the hook to work. |
In React-Native I have this
ReactQueryDevtools
component:When there is a component with
useQuery
hook I receive and error:Something I am doing wrong? Does this lib support React-Native?
The text was updated successfully, but these errors were encountered: