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

Redux state subscription changes is empty on Timeline #1485

Open
GabrielLim-FastCo opened this issue Jun 6, 2024 · 2 comments
Open

Redux state subscription changes is empty on Timeline #1485

GabrielLim-FastCo opened this issue Jun 6, 2024 · 2 comments

Comments

@GabrielLim-FastCo
Copy link

Describe the bug

I have followed the instructions to setup Redux on Reactotron. It is kinda working as I can see the redux state showing up on Subscriptions section of State tab. However, the Subscription changes on Timeline tab is just empty.

As attached a video that shows the issue:

subscription_bug.mov

Reactotron version

5.1.7

@lwmouneyrac
Copy link

Same for us - everything works except the subscriptions in the timeline tab - the State are correctly updating in the State tab - not sure what we did wrong in the setup (we use redux connect api / redux-observable / redux-persist)

@hamzahayat
Copy link

We had a similar issue on our app, but we noticed that our redux store was being created within the App component possibly leading to the redux store getting re-created on every re-render. This seemed to also cause an issue with Reactatron not loading up the state values within the State tab.

Moving the definition of the store to outside the component fixed the issue for us 👍🏼

Before

const App = () => {
  return (
    <Provider
      store={createStore({
        thunkArgs: {
          platform: Platform.OS,
        },
      })}
    />
  );
};

After

const store = createStore({
  thunkArgs: {
    platform: Platform.OS,
  },
});

const App = () => {
  return <Provider store={store} />;
};

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

No branches or pull requests

3 participants