mirror of
https://github.com/plankanban/planka.git
synced 2025-07-30 18:49:44 +02:00
16 lines
334 B
JavaScript
16 lines
334 B
JavaScript
|
import { call, select } from 'redux-saga/effects';
|
||
|
|
||
|
import loginSaga from './login';
|
||
|
import appSaga from './app';
|
||
|
import { accessTokenSelector } from '../selectors';
|
||
|
|
||
|
export default function* () {
|
||
|
const accessToken = yield select(accessTokenSelector);
|
||
|
|
||
|
if (!accessToken) {
|
||
|
yield call(loginSaga);
|
||
|
}
|
||
|
|
||
|
yield call(appSaga);
|
||
|
}
|