jcperez-ch / flaxs

const Flaxs = Flux + Redux.principles();
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

CR 1.0.4 Fixing Issue #7 #12

Closed jcperez-ch closed 8 years ago

jcperez-ch commented 8 years ago

Fixing bug where multi emit events when dispatching action types in multiple reducers.

Adding a unit test regarding that.... basically I freeze the initial state if there is a reducer dispatched when the first reducer is dispatching, then we do the changes on the state every time it actually requires the change, and finally when all reducers are finished we compare frozenStore with current store... if changed then we emit a change in a single dispatch.

jcperez-ch commented 8 years ago

@felix-d and @tomzmtl I might need code review here.... this bug fix will be huge if we want to switch from to stores to reducers.