Great article!
João Sobreira
1

Great question! You’re right, Ramda has functions which can modify deeply nested data without mutating the original object like assocPath and dissocPath. However, this decision was made so that it was easy to onboard our team to either of these libraries. Our custom reducer factory ensures that everything our reducers receive and return is Immutable and post that converts it to POJO. Without using something like Immutable which absolutely forbids mutations, we would have had to rely on code reviews to ensure everything in reducers was written using Ramda. An alternative would be to use something like Object.freeze in dev. Hope this makes sense.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.