ref: Refactoring
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { all, apply, call, fork, take } from 'redux-saga/effects';
|
||||
|
||||
import watchers from './watchers';
|
||||
import { initializeCoreService } from './services';
|
||||
import services from './services';
|
||||
import { socket } from '../../api';
|
||||
import { removeAccessToken } from '../../utils/access-token-storage';
|
||||
import ActionTypes from '../../constants/ActionTypes';
|
||||
@@ -11,7 +11,7 @@ export default function* coreSaga() {
|
||||
yield all(watchers.map((watcher) => fork(watcher)));
|
||||
|
||||
yield apply(socket, socket.connect);
|
||||
yield fork(initializeCoreService);
|
||||
yield fork(services.initializeCore);
|
||||
|
||||
yield take(ActionTypes.LOGOUT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user