zalmoxisus / remote-redux-devtools

Redux DevTools remotely.
http://zalmoxisus.github.io/monitoring/
MIT License
1.81k stars 139 forks source link

remote-redux-devtools doesn't work with latest RN 0.56 release #117

Closed todorone closed 6 years ago

todorone commented 6 years ago

It doesn't work due to incorrect 'rn-host-detect' behavior. This is similar issue which also has workaround - https://github.com/infinitered/reactotron/issues/724

nikolaigeorgie commented 6 years ago

Any ETA on the fix?

VicFrolov commented 6 years ago

Yep, same here. Babel 7 issue I presume.

LaurieWilliamsNZ commented 6 years ago

Same problem. I've had to remove remote-redux-devtools until this bug is resolved.

LaurieWilliamsNZ commented 6 years ago

@todorone is correct. Workaround is to overwrite node_modules/rn-host-detect.index.js with https://raw.githubusercontent.com/MaxToyberman/rn-host-detect/35a45bb8424f748f16cc9da0402df144ce11385f/index.js.

It's a messy workaround but at least it's working.

SudoPlz commented 6 years ago

I made a PR that should fix the problem above.

Temporarily you can

1) Run yarn remove remote-redux-devtools;yarn add remote-redux-devtools-sp and

2) Change: import devTools from 'remote-redux-devtools'; to import devTools from 'remote-redux-devtools-sp';

todorone commented 6 years ago

@LaurieWilliamsNZ @SudoPlz Does redux state tracking works for you with above fixes? I somehow see empty redux state tab in React Native Debugger even with both either fixes... 😭

jhen0409 commented 6 years ago

I've solved the issue by https://github.com/jhen0409/rn-host-detect/pull/5 and published the package as 1.1.4.

todorone commented 6 years ago

@jhen0409 Great, thanks, it's working. The last issue stays is with standalone RNDebugger which doesn't work as redux inspecting tool, while chrome extension do...

SudoPlz commented 6 years ago

@todorone I'm using remote-redux-devtools with remote-redux-devtools-spand it works, I can inspect my state.

MaximWuyts commented 5 years ago

Changing to another Emulator worked for me!