DEV Community

Discussion on: Why to use Maps over Objects in JS ?

Collapse
 
danwalsh profile image
Dan Walsh

Super interesting stuff. With Redux strongly advising against using Maps in state, are there any options to work around this?

Collapse
 
faisalpathan profile image
faisal khan

We can create a custom middleware in redux to serialize maps, but the conditon is the key has to serializable.

Some comments have been hidden by the post's author - find out more