react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

Redux devtools with "autoselect instance" -> will autoselect @react-navigation

Open aymkin opened this issue 4 years ago • 2 comments

I use React Native Debugger to inspect the redux state of my react native app.

React navigation automatically creates an instance called "@react-navigation" in the redux devtools each time I live reload (see screenshot).

With auto select instances turned on, @react-navigation takes precedence over the new redux store instance. It's very annoying because I must manually select the new redux store instance each time I live reload.

  • every load @react-navigation appears in the autoselected instances
  • every time redux store has a different name

screenshot

React Native Debugger app version: [0.10.6] React Native version: [0.61.4] Platform: [iOS] Is a real device: [No] Operating System: [FILL THIS OUT: macOS]

aymkin avatar Mar 09 '20 06:03 aymkin

Currently the devtools didn't remember selected instance when reload the app even we specified instanceId option. This can be improved by saving instance.selected.

jhen0409 avatar Mar 14 '20 02:03 jhen0409

@jhen0409 can you provide some example of how to use instance.selected ? Because I have the same problem as aymkin

ksetrin avatar Mar 25 '20 09:03 ksetrin