redux-devtools
redux-devtools copied to clipboard
[redux-devtools-inspector] Adding ES6 maps and sets previews
Currently maps and sets are just indicated as Iterable:
Would be useful to have a more detailed preview like so:
That was already implemented in upstream, but it conflicts with our custom types introduced before.
Note that it's only about the preview. ES6 maps and sets are supported without issues.
It could also include previews for other types as suggested in #404.
It looks like Set
support is in react-json-tree
now -- are there other fixes to be made and released for redux devtools now?
It's been a while since I looked at this, but I don't know of any special Set
support in react-json-tree
. My impression was that they were still just treated as iterables.
2021 - Map and Set are still showing as empty objects...
Hi Methuselah96 thanks for the support for this nice tool. I still have always the problem, that using a Set in my states pops up as an empty object. And Set is a quite standard/basic datastructure, that should be shown in the devtools. I and probably a lot of people who use Set in their state, think something is wrong, as it shows the state as {}, but still values are available. Can i support anyhow? if you point me to the relevant sourcecode pieces.
For whoever comes here, like me, in search for an answer to why instances of Map and Set show up as empty objects: I needed to set the serialize
option to see their contents in the redux dev tools.