mattkrick / redux-optimistic-ui

a reducer enhancer to enable type-agnostic optimistic updates
MIT License
693 stars 36 forks source link

The reducer should be able to be pass sanity tests #1

Closed RaitoBezarius closed 8 years ago

RaitoBezarius commented 8 years ago

Wrapping a reducer inside an optimistic wrapper and combining it into reducer makes Redux fails.

Because you suppose that there is only one initialization pass, but you should assume that as long as state === undefined, this is initialization, I think.