概要 sagaを複数のファイルで書いといて一つのrootSagaにまとめて使うなら、各ファイルで、effectをexportし、rootSaga内で、yield allすればOK 背景 reducerは複数のファイルで個々に管理して、combineReducersでまとめてexportするのが主流 sagaでも同じように、関心事に複数のファイルで分けて管理して、まとめてexporとして使いたい 環境 redux-saga: 0.16.0 手順 item.jsとregsiter.jsでsagaを用意し、各ファイル毎にeffetctを配列にまとめてexportする index.jsでeffetcの配列をimportしてyield allでrootSagaにまとめる item.jsとregsiter.jsでsagaを用意し、各ファイル毎にeffetctを配列にまとめてexportする ポイントは
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く