zrg-team / flipper-rn-redux-inspector-plugin

A flipper plugin support inspect redux state and action logs for react-native
24 stars 2 forks source link

State and actions not showing in Flipper app #4

Open denispixi opened 4 years ago

denispixi commented 4 years ago

In Flipper the plugin is installed and enabled, and in my iOS app, rn-redux-middleware-flipper and react-native-flipper are installed too, but in the flipper app on the RN Redux Inspector section nothing is showing

image

What i'm missing or misconfigured?

zrg-team commented 4 years ago

@denispixi de did you implement redux's plugin ?

if (__DEV__) { // eslint-disable-line
  const createFlipperMiddleware = require('rn-redux-middleware-flipper').default
  middlewares.push(createFlipperMiddleware())
}
denispixi commented 4 years ago

Yes, I did that. I figured out that nothing is shown until some redux action is dispatched. Also this: if I leave the plugin section in flipper (go to RN logs for example), do some updates to the store and return to RN-redux-inspector the state is not up-to-date, it get updated only if the plugin is focused when some action is dispatched