P E N C I L
Login
Redux-thunk

const f = (dispatch) => {.... dispatch.action())

dispatch(f)

redux thunk add middleware which handles function rather than action.

const store = createStore(rootReducer, applyMiddleware(thunk));

====

another way:

- use data service async)

- dispatch(result after done)