exported only watch saga
This commit is contained in:
parent
d83f3d9308
commit
69114b8352
|
|
@ -21,7 +21,3 @@ export function* fetchCanvas() {
|
|||
export function* watchFetchCanvas() {
|
||||
yield takeEvery(ActionTypes.FETCH_CANVAS, fetchCanvas)
|
||||
}
|
||||
|
||||
export function* canvasSagas() {
|
||||
yield all([fetchCanvas(), watchFetchCanvas()])
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user