Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const root = function* root() {
yield all([
init(),
createChannel(),
hello(),
rooms(),
login(),
connect(),
messages(),
selectServer(),
state(),
starredMessages(),
pinnedMessages(),
mentionedMessages(),
snippetedMessages(),
roomFiles()
]);
};
function* root() {
yield all([
fork(login)
]);
}
function* defaultSaga() {
yield all([
fork(takeLatest, GET_ADMIN_DATA, getData),
]);
}
export default function* rootSaga() {
yield all([fetchData(), watchFetchRequest()])
}
export default function* rootSaga() {
yield all([
manageUserState(),
watchErrors(),
watchProjects(),
watchUi(),
watchClients(),
watchCompiledProjects(),
watchAssignments(),
]);
}
export default function* rootSaga() {
yield all([
...azureResourceSagas,
...connectionStringsSagas,
...deviceListSagas,
...deviceContentSagas,
...notificationsSagas,
]);
}
export default function* analyticsRootSaga() {
yield all([
takeEvery([loginTypes.LOGIN.SUCCESS, loginTypes.LOGOUT.SUCCESS], loginSaga),
takeEvery(todosTypes.TODOS.NEW.SAVE, newTodoSaga),
takeEvery(todosTypes.TODOS.SET_STATUS, updateTodoSaga),
takeEvery(todosTypes.TODOS.SET_FIRESTORE, setFirestoreSaga),
takeEvery(storageTypes.SEND_FILE, sendFileSaga),
])
}
export function* watchModel(buttons, { payload }) {
const { prefix, key } = payload;
const modelLink = `models.${prefix}['${key}']`;
if (buttons[modelLink]) {
yield all(buttons[modelLink].map(button => fork(resolveButton, button)));
}
}
export default function* rootSaga() {
yield all([fork(watchGetMembers)]);
}