reactotron icon indicating copy to clipboard operation
reactotron copied to clipboard

Reactrotron not showing redux store

Open HemangiVekaria opened this issue 11 months ago • 3 comments

Describe the bug

In Reactotron desktop app I tried to click on ctrl+n and then just add blank and click enter also * and then click enter but not showing redux store in State -> Subscription. In my react native code i configure like this. If i add [enhancer =](enhancers: [ReactotronConfig.createEnhancer()],) then it's showing enhancer need callback. I don't know how to add. image

Also this is my ReactotronConfig file image

Please anyone is able to help me with this. Thanks

"@react-native-async-storage/async-storage": "^1.22.3", "@reduxjs/toolkit": "^2.2.1", "react": "18.2.0", "react-native": "0.73.5", "react-redux": "^9.1.0", "reactotron-redux": "^3.1.9", "redux-persist": "^6.0.0"

"reactotron-react-native": "^5.1.3",

Reactotron version

3.7.0

HemangiVekaria avatar Mar 01 '24 12:03 HemangiVekaria

Describe the bug

In Reactotron desktop app I tried to click on ctrl+n and then just add blank and click enter also * and then click enter but not showing redux store in State -> Subscription. In my react native code i configure like this. If i add [enhancer =](enhancers: [ReactotronConfig.createEnhancer()],) then it's showing enhancer need callback. I don't know how to add. image

Also this is my ReactotronConfig file image

Please anyone is able to help me with this. Thanks

"@react-native-async-storage/async-storage": "^1.22.3", "@reduxjs/toolkit": "^2.2.1", "react": "18.2.0", "react-native": "0.73.5", "react-redux": "^9.1.0", "reactotron-redux": "^3.1.9", "redux-persist": "^6.0.0"

"reactotron-react-native": "^5.1.3",

Reactotron version

3.7.0

This is fixed by just adding enhancer with callback like this image

HemangiVekaria avatar Mar 04 '24 10:03 HemangiVekaria

This is fixed by just adding enhancer with callback like this

TS threw errors when I tried spreading default enhancers, but weirdly this fixed it for me

export const store = configureStore({
  reducer: {
    user: userReducer,
  },
  enhancers: (getDefaultEnhancers) => {
    return __DEV__
      ? getDefaultEnhancers().concat(reactotron.createEnhancer())
      : getDefaultEnhancers();
  },
});

abizek avatar Jul 02 '24 14:07 abizek

This is fixed by just adding enhancer with callback like this

TS threw errors when I tried spreading default enhancers, but weirdly this fixed it for me

export const store = configureStore({
  reducer: {
    user: userReducer,
  },
  enhancers: (getDefaultEnhancers) => {
    return __DEV__
      ? getDefaultEnhancers().concat(reactotron.createEnhancer())
      : getDefaultEnhancers();
  },
});

This would be very useful for the documentation! Thx

Letty avatar Jul 24 '24 10:07 Letty