Last active
October 14, 2018 20:13
-
-
Save pahund/5af14b9017f7eb64c0a9e272e5373a1d to your computer and use it in GitHub Desktop.
Creating a root Redux Saga for the application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { all, fork } from 'redux-saga/effects'; | |
import { saga as hackerNews } from '@modular-toolkit/demo-module'; | |
import { saga as home } from './pages/home'; | |
import { saga as about } from './pages/about'; | |
import { saga as contact } from './pages/contact'; | |
const sagas = [hackerNews, home, about, contact]; | |
export default function* rootSaga() { | |
yield all(sagas.map(saga => fork(saga))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment