1
私はreduxとredux-thunkを使用しています。レデューサーを通過する行動を待つ方法は?
私は次のコードを持っている:
export function initialAuth() {
return (dispatch, getState) => {
dispatch(authApp()).then(
(token) => {
dispatch(fetchUserProfile(token)).then(() => {
dispatch(displayUserProfile(token))
})
}
)
}
}
を私が持っている問題はdispatch(displayUserProfile(token))
だけ派遣するアクションを待ちますが、減速機を通過し、そのアクションを待たないということです。
実際には、減速機を通過してから別の動作を送信するアクションが必要です。どのようにそれを行う必要がありますか?