-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Map show up as empty object in redux devtools #683
Comments
I was able to set serialize to true using the devTools parameter to configureStore, like so:
So what I'm arguing for now, is that the default should be to set up devtools with serialize set to true (I understand there may be performance considerations). |
We explicitly recommend against using objects that cannot be trivially reserialized using JSON.parse in the store, as this does not only need extra configuration of the devtools, but might also cause all kinds of problems with third-party middlewares like So enabling this by default would probably send a wrong signal ;) |
We have always specifically told users to never put non-serializable values like classes and |
See the issue reduxjs/redux-devtools#496
Map shows up as empty object (i.e. "{}") in redux devtools.
The rationale for getting it working again (i.e. it used to work and no longer works, and Map is a very useful datatype to use), is here: reduxjs/redux-devtools#496 (comment)
The suggested fix/workaround is to set up serialize in the redux-devtools options: reduxjs/redux-devtools#496 (comment)
But since setting up redux-devtools is handled inside redux-toolkit, I need redux-toolkit to do it.
Is it possible to have redux-toolkit set up redux-devtools so that Map will show up?
The text was updated successfully, but these errors were encountered: