question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Map and Set with immer and/or immer-peasy

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
andrei-datcucommented, Jun 30, 2020

@ctrlplusb Gave 3.4.0-beta.1 a spin and things look awesome, thanks so much. I was wondering whether easy-peasy should somehow wrap / expose immer’s enableMapSet function. Maybe as a field in store config? It’s a bit strange to have to import immer just to call enableMapSet especially when the app doesn’t have immer as a direct dependency.

1reaction
ctrlplusbcommented, Feb 27, 2020

Awesome to hear. Let me know if you need any more information to help with your talk. 💜

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found