reactotron
reactotron copied to clipboard
Reactrotron not showing redux store
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.
Also this is my ReactotronConfig file
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
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.
Also this is my ReactotronConfig file
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
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 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