Skip to content
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

Remote devtools doesn't recover from disconnections from standalone app #1821

Open
jseaton612 opened this issue Jan 29, 2025 · 3 comments
Open

Comments

@jseaton612
Copy link

When I tried to get remote devtools set up for a react native project, I found that nothing would show up in devtools after reloading my app unless I reloaded devtools too at just the right time.

I used the default config: enhancers: getDefaultEnhancers => getDefaultEnhancers().concat(devToolsEnhancer()) for remote and redux-devtools --open to start devtools and the server.

It seemed like the remote client wasn't getting the "START" message from devtools, so I made these patches and they seemed to fix the problem. I didn't look at very deeply at the code, though - I'm sure there's a better way.

@redux-devtools+app+6.1.0.patch
@redux-devtools+remote+0.9.3.patch

@jseaton612 jseaton612 changed the title Remote devtools doesn't recover from disconnections Remote devtools doesn't recover from disconnections from standalone app Jan 29, 2025
@markerikson
Copy link

@jseaton612 what happens if you turn off the default included devtools enhancer first?

@jseaton612
Copy link
Author

@markerikson Totally forgot to mention that - I had already turned it off (devtools: false) thinking something would break otherwise. Just tried devtools: true but from what I can tell it behaves the same

@jordwms
Copy link

jordwms commented Feb 11, 2025

I'm in the same boat as @jseaton612 . I'm building React Native w/ Metro and RTK. Using the standalone Redux Devtools app I see continuous disconnects/reconnects (other apps fail to connect). I see the repetition of the following log messages over ~10 seconds, with both Server and Client acknowledgements timing out:

 LOG  connected to remotedev-server
 LOG  remote-redux-devtools: Socket connection errors are being suppressed. 
This can be disabled by setting suppressConnectErrors to 'false'.
 LOG  [SocketProtocolError: Client pong timed out]
 LOG  connected to remotedev-server
 LOG  remote-redux-devtools: Socket connection errors are being suppressed. 
This can be disabled by setting suppressConnectErrors to 'false'.
 LOG  [SocketProtocolError: Server ping timed out]
 LOG  connected to remotedev-server

Please let me know if I can provide further information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants