Do you have example with using thunk?
Also sometimes you can call couple of actions:
onClickRefreshData () {
return (dispatch, getState) => {
dispatch(createAction(`${PREFIX}/SET-SOME-DATA`)(... call api ...))
dispatch(createAction(`${PREFIX}/SET-ANOTHER-DATA`)(... call api ...))
}
Do you have example with using thunk?
Also sometimes you can call couple of actions: