xuoe / redux-observers

Observe Redux state changes and dispatch actions on change
MIT License
18 stars 5 forks source link

immutablejs support? #2

Closed amcdnl closed 8 years ago

amcdnl commented 8 years ago

how well would this library work with immutablejs?

xuoe commented 8 years ago

I haven't used it together with Immutable.js, but it will work fine with a custom implementation of equals specifically tailored for this use case. Note that you'd have to provide the custom equals implementation to each observer (whose signature is (mapper, dispatcher, equals)), otherwise the default equals implementation would be used.

xuoe commented 8 years ago

Regarding the note above (although not strictly related to your query): it's no longer necessary to do that since v2.0.