# 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](https://github.com/react-stack/redux-storage/blob/master/src/createMiddleware.js#L97). I think the right order should be: 1. dispatch this SAVE action 2. save into storage-engine in reducer or middleware.