Does not seem to work with Immutable.js
See original GitHub issueHi, I have Immutable.js map in the store that I am trying to listen to changes on:
as in:
let w = watch(appStore.getState, 'notify.currentAction', isEqual);
and yet I don’t get an event for when Map currentAction gets modified (if I removed currentAction all works per reducer only)
is that not supported?
regards
Sean
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
Immutable.js
When data is passed from above rather than being subscribed to, and you're only interested in doing work when something has changed, you...
Read more >Immutable.js is essentially unmaintained · Issue #1689
FB OSS consists primarily of facebook exporting code developed internally, and they do not appear to have put forwards any new maintainers.
Read more >Immutable.js updateIn does not work with plain objects?
I am using Immutable 4.0.0-rc.9. Well, it works here in the console. You might want to consider trying to import like this import...
Read more >You may not need Immutable.js
Conclusion. Surprisingly or not, you may not need Immutable. js to enforce immutability of your data structures. I use words „may not” instead...
Read more >Reasons I Dislike Immutable.js
No crazy API. It has 4.7k stars in days of it's release. It seems like a lot of people agreed with me in...
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 FreeTop 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
Top GitHub Comments
I ended up creating my own version of the lib (with some added helper methods) see here: https://github.com/born2net/angular2-redux-util
Actually, forget about my last comment. It works, but it’s really, really slow and use immutable.js in a bad way.
Inspired by the work on the library, we created redux-watch-immutable that just works for immutable object (and it’s crazy fast!)