jhen0409 / react-native-debugger

The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools
MIT License
10.38k stars 810 forks source link

[Redux DevTools] Add support `Sync` feature between the windows #89

Open jhen0409 opened 7 years ago

jhen0409 commented 7 years ago

It's similar to the Sync trigger in remote-redux-devtools monitor:

2017-06-05 1 26 29

It will sync actions / state between all instances, but if we want to do this in here, we may sync the debugger windows instead of instances, and depends the store name for sync it.

This would be useful when debugging both iOS and Android or multiple real devices.

In progress

See the comment.

entropitor commented 7 years ago

Could you give a pointer to where to start for this issue? I might take a look at it. It seems really useful to me 😄

jhen0409 commented 7 years ago

You can start work on reduxAPI middleware, get instance state and send to another windows via Electron IPC API, then update state with IMPORT message (Debugger worker received the message). Most of the logic is in remotedev-app if you want to understand.