client/src/sagas/networkSaga.js
changeset 168 ea92f4fe783d
parent 140 94d1e40f7954
--- a/client/src/sagas/networkSaga.js	Tue Oct 09 19:07:47 2018 +0200
+++ b/client/src/sagas/networkSaga.js	Mon Oct 08 18:35:47 2018 +0200
@@ -1,7 +1,6 @@
 import * as types from '../constants/actionTypes';
 import { all, call, fork, race, take, cancelled, put, select } from 'redux-saga/effects'
 import config from '../config';
-import * as persistConstants  from 'redux-persist/constants';
 import jwt_decode from 'jwt-decode';
 import moment from 'moment';
 import { delay } from 'redux-saga';
@@ -90,10 +89,6 @@
 // Wait for successful response, then fire another request
 // Cancel polling if user logs out or log in
 function* watchPollData(context) {
-
-  //wait for the state to be rehydrated
-  yield take(persistConstants.REHYDRATE);
-
   while (true) {
     yield race({
       poll: all([call(pollData, context), call(callDelay, context)]),