redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

[redux-devtools-inspector] Adding ES6 maps and sets previews

Open zalmoxisus opened this issue 6 years ago • 5 comments

Currently maps and sets are just indicated as Iterable: image

image

Would be useful to have a more detailed preview like so: image

image

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.

zalmoxisus avatar Dec 22 '18 00:12 zalmoxisus

It looks like Set support is in react-json-tree now -- are there other fixes to be made and released for redux devtools now?

rgbkrk avatar Jul 11 '21 20:07 rgbkrk

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.

Methuselah96 avatar Jul 12 '21 13:07 Methuselah96

2021 - Map and Set are still showing as empty objects...

art-c0der avatar Nov 29 '21 14:11 art-c0der

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.

larsilus avatar Mar 31 '22 15:03 larsilus

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.

datenreisender avatar Feb 14 '23 11:02 datenreisender