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

Multiple stores, one under Suspense, break devtools #825

Open
mbrain-io opened this issue Dec 13, 2021 · 0 comments
Open

Multiple stores, one under Suspense, break devtools #825

mbrain-io opened this issue Dec 13, 2021 · 0 comments

Comments

@mbrain-io
Copy link

Hi there, I have the following unorthodox setup:

  • Main app creates first store the normal way
  • Library used by main app, puts its own ReduxProvider under Suspense, and loads it on demand. This creates the second store.
  • devtools are detecting first store correctly, but when store under Suspense is loaded, devtools stop working even for first store, and second store is not detected
  • If I put ReduxProvder outside Suspense for the second store, everything works. Both stores are visible from devtools
  • But I can not put it outside, cause the point of Suspense is to trigger code splitting and load library only on demand

Any clue on how to solve this would be appreciated 😀

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

1 participant