Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactrotron not showing redux store #1450

Open
HemangiVekaria opened this issue Mar 1, 2024 · 3 comments · May be fixed by #1511
Open

Reactrotron not showing redux store #1450

HemangiVekaria opened this issue Mar 1, 2024 · 3 comments · May be fixed by #1511

Comments

@HemangiVekaria
Copy link

HemangiVekaria commented Mar 1, 2024

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
Copy link
Author

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

@abizek
Copy link

abizek commented Jul 2, 2024

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();
  },
});

@Letty
Copy link

Letty commented Jul 24, 2024

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

@frankcalise frankcalise linked a pull request Oct 9, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants