Use Case
I wanted to add a middleware to modify payload to sync into storage-engine, but failed all the time.
Problem
Turnen out newState is saved into storage-engine before its action dispatched.
I think the right order should be:
- dispatch this SAVE action
- save into storage-engine in reducer or middleware.