yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows
MIT License
177 stars 22 forks source link

onStateChange: dont mutate past #57

Closed yoshuawuyts closed 8 years ago

yoshuawuyts commented 8 years ago

Closes https://github.com/yoshuawuyts/barracks/issues/56. Makes sure we override previous state rather than mutate it. Added a regression test to guard against this behavior. Thanks!

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.04%) to 94.697% when pulling 3bc3eee90ad70287b2788f0d52c39d4187278ba1 on fix-the-past into 5104836ae536ee5bc9d13ba4b6feededb91e508c on master.

yoshuawuyts commented 8 years ago

All tests passing - should be good for a new release together with #54

yoshuawuyts commented 8 years ago

Released as v8.0.3