Support Map and Set with immer and/or immer-peasy
See original GitHub issueI just discovered that I can’t use Map because the changes are not included/rebased into immer-peasy.
Is that intentional? How can I help?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Map and Set | Immer - GitHub Pages
Since version 6 support for Maps and Sets has to be enabled explicitly by calling enableMapSet() once when starting your application.
Read more >Update patterns | Immer - GitHub Pages
To help 'unlearning' those patterns here is an overview how you can leverage the built-in JavaScript APIs to update objects and collections: ...
Read more >Introduction to Immer - GitHub Pages
Immer will help you to follow the immutable data paradigm by addressing these pain points: ... while using normal JavaScript objects, arrays, Sets...
Read more >API overview | Immer - GitHub Pages
Exported name Description Section
enableAllPlugins() Enables all plugins mentioned below Installation
enableMapSet() Enables support for Map and Set collections. Installation
enablePatches() Enables support for JSON patches....
Read more >Pitfalls | Immer - GitHub Pages
Immer only supports unidirectional trees#. Immer assumes your state to be a unidirectional tree. That is, no object should appear twice in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ctrlplusb Gave
3.4.0-beta.1a spin and things look awesome, thanks so much. I was wondering whethereasy-peasyshould somehow wrap / exposeimmer’senableMapSetfunction. Maybe as a field in store config? It’s a bit strange to have to import immer just to callenableMapSetespecially when the app doesn’t haveimmeras a direct dependency.Awesome to hear. Let me know if you need any more information to help with your talk. 💜