exported only watch saga

This commit is contained in:
Nikhil Nandgopal 2019-03-26 21:32:23 +05:30
parent d83f3d9308
commit 69114b8352
2 changed files with 2 additions and 6 deletions

View File

@ -21,7 +21,3 @@ export function* fetchCanvas() {
export function* watchFetchCanvas() {
yield takeEvery(ActionTypes.FETCH_CANVAS, fetchCanvas)
}
export function* canvasSagas() {
yield all([fetchCanvas(), watchFetchCanvas()])
}

View File

@ -1,6 +1,6 @@
import { all } from "redux-saga/effects"
import { canvasSagas } from "../sagas/CanvasSagas"
import { watchFetchCanvas } from "../sagas/CanvasSagas"
export function* rootSaga() {
yield all([canvasSagas()])
yield all([watchFetchCanvas()])
}