proxyMap doesn't work with Redux DevTools #737
Unanswered
NeilTheFisher
asked this question in
Bug report
Replies: 1 comment
-
Me too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A workaround is required to show
Map
s on the Redux DevTools, and when the value is changed in the DevTools, it doesn't update the original.What I did in the reproduction below converts the map to an object so display it's data but this makes it impossible for the DevTools to update the original unless some trickery
subscribe
on the debugState is done, though it wouldn't be hard to implement.Building this functionality into the
devtools
function if aMap
orSet
is used would be great.It looks like it's possible to have the Redux DevTools serialize maps this way:
If the DevTools can do this, then it can likely also update the Map as well.
Though I'm skeptical about this working since a
proxyMap
is just an emulation of an actualMap
.Link to reproduction
proxyMap
or this codesandboxScreenshot showing the problem
Beta Was this translation helpful? Give feedback.
All reactions