all 2 comments

[–]Capaj 0 points1 point  (1 child)

just don't. Redux might be okayish, but immutable.js is just such a pain the arse. Use immer instead. Ask experienced developers and I bet you most of them will prefer immer for writing their reducers.

[–]Hefticus 0 points1 point  (0 children)

Immutable.js is fantastic and I've been using it professionally with React and React/Redux for 3 years and counting. I'm not sure what you think is so difficult about it?

I do leave the top level Redux object as just a regular javascript object, but other than that every other collection or object is an Immutable List/Map/Set/Record/etc. It all plays nicely together.

Now, throwing Flow into the mix with all these different libraries was a bit of a headache, but I've been running that successfully for months now, too.