-
-
Save hiakku/c860caf00bd563611d1b66690934d706 to your computer and use it in GitHub Desktop.
This file contains 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 { takeEvery } from "redux-saga/effects"; | |
export function* watchSagaFunc() { | |
try { | |
yield someTestFunc(); | |
//some try functionality | |
} catch { | |
//some error | |
} | |
} | |
export default function* rootSaga() { | |
yield takeEvery('TEST_FUNCTION',watchSagaFunc); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment