phoxelua / matcha

Does money things
0 stars 0 forks source link

ensure that `state` is immutable #38

Open jjwon0 opened 8 years ago

jjwon0 commented 8 years ago

why? state should never be mutated. causes more errors than it's worth.

we can use immutable.js to help with this, or try to use some of the helpers that react has already implemented in the library. i feel that immutable.js is better, though.

a couple of options:

jjwon0 commented 8 years ago

Update: I tried using redux-immutable, but it seems to be not in sync with react-router-redux@4.0.0. redux-immutable-state-invariant doesn't seem to be doing its job. I think it'd be easiest to just wait til the documentation updates.