In React, when I call setState, it has a callback to notify me the state has been setted. But when I use Redux, I use dispatch to change the state, but how can I know if the state has been updated.
For example:
dispatch({type: 'setCount', {count: 1}});
dispatch({type: 'add', {addedCount: this.state.count + 1}})
the second line depends on the first line, but we all know setState is not a synchronous operation, how can I handle this issue in Redux