remote-redux-devtools: Error in React Native when connected to Chrome debugger

When the app is connected to chrome debugger, it shows the following error message,

screenshot_20160110-174529

I don’t see the @@INIT action, so I assume it’s unable to connect.

It works fine if not connected to the debugger. For now I detect if the app is running in a web worker instance and disable the dev tools.

const middlewares = [ applyMiddleware(thunk) ];

if (typeof global.self === 'undefined') {
    middlewares.push(devTools());
}

const finalCreateStore = compose(
    ...middlewares
)(createStore);

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 18 (9 by maintainers)

Most upvoted comments

For the benefit of google indexing, the error message here is “Event response for ‘login’ timed out” (it took me too long to find this).

My situation is that I’m running remote-redux-devtools with a local server, but many times I don’t have the redux debugger running because I’m working on something else. So I’d like to make this error ignorable (I know that the debugger won’t be able to connect, and I’m ok with that).

No, it doesn’t communicate via USB if you didn’t configure you phone to use the laptop internet. Maybe your phone’s wifi is just turned off?

It turns out that it cannot connect to remotedev.io, which we use for socket communications. You can of course use it via lan as we implemented in #1, but it’s way difficult to expose localhost, and I don’t think it will make any difference in this case.

UPD: Sorry, I forgot that it’s the case only when turning the debugger on.