mattkrick / redux-optimistic-ui

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

Why does the isNotOptimistic property get added to my REVERT action? #39

Closed hally9k closed 6 years ago

hally9k commented 6 years ago

I'm reading through the source trying to understand why my REVERT isn't reverting. The lines below add the isNotOptimistic property to the REVERT action which guards in the applyRevert function stopping it from rolling back the changes. Is this correct? What am I missing here?

https://github.com/mattkrick/redux-optimistic-ui/blob/fb4af41bf88e425bff02d1120b8a31629bf0d7f8/src/index.js#L128-L129