lukebarnard1 / matrix-redux-wrap

A library that exposes matrix-js-sdk state via Redux
Apache License 2.0
3 stars 1 forks source link

Use Immuttable.js #6

Open lukebarnard1 opened 6 years ago

lukebarnard1 commented 6 years ago

Immutable was built to handle things we need for mrw, like nested state updates with minimum memory overhead. Currently mrw exposes state as plain objects. It's probably best that it exposes immutable state only, which allows for much safer and less defensive programming.

This is a big API change although functionality doesn't change.