请问金友们 , redux-thunk 的 action 处理是
```
export const incrementAsync = (number) => {
return dispatch => {
setTimeout(() => {
dispatch({type: INCREMENT,data: number})
},1000)
}
}
```
那我直接不用在 `mapDispatchToProps` 处理不就行了吗 , 为啥还要用这个中间件
```
const mapDispatchToProps = (dispatch) => {
return {
incrementAsync: () => {
setTimeout(() => {
dispatch({ type: "increment", data: 1 });
}, 5000);
},
};
};
export default connect(
(state) => ({ count: state }),
mapDispatchToProps
)(Counter);
```