Introduction
const asyncAction = () => ({
type: 'PROMISE',
payload: new Promise(...),
})const secondAction = (data) => ({
type: 'SECOND',
payload: {...},
})
const firstAction = () => {
return (dispatch) => {
const response = dispatch({
type: 'FIRST',
payload: new Promise(...),
})
response.then((data) => {
dispatch(secondAction(data))
})
}
}Documentation and Help
Issues
Releases
Maintainers
License
Last updated