You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
planka_custom/client/src/sagas/index.js

16 lines
342 B
JavaScript

import { call } from 'redux-saga/effects';
import loginSaga from './login';
import coreSaga from './core';
import { getAccessToken } from '../utils/access-token-storage';
export default function* rootSaga() {
const accessToken = yield call(getAccessToken);
if (!accessToken) {
yield call(loginSaga);
}
yield call(coreSaga);
}