core-dashboard-worona
Advanced tools
Comparing version 1.3.9 to 1.3.10
{ | ||
"name": "core-dashboard-worona", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"description": "Core Package of Worona Dashboard", | ||
@@ -5,0 +5,0 @@ "scripts": { |
/* eslint-disable no-constant-condition */ | ||
import { getSagas, getReducers, packageActivated, getDeps, waitForDeps } from 'worona-deps'; | ||
import { put, call } from 'redux-saga/effects'; | ||
import { put, call, join, fork } from 'redux-saga/effects'; | ||
import { takeEvery } from 'redux-saga'; | ||
@@ -29,10 +29,9 @@ import { addReducer, startSaga, reloadReducers, removeReducer, stopSaga } from '../store'; | ||
if (pkg.assets) { | ||
yield [ | ||
call(waitFor, pkg.name, | ||
types.PACKAGE_ASSETS_LOAD_SUCCEED, types.PACKAGE_ASSETS_LOAD_FAILED), | ||
put(actions.packageAssetsLoadRequested({ pkg })), | ||
]; | ||
const waitForAssets = yield fork(waitFor, pkg.name, | ||
types.PACKAGE_ASSETS_LOAD_SUCCEED, types.PACKAGE_ASSETS_LOAD_FAILED); | ||
yield put(actions.packageAssetsLoadRequested({ pkg })); | ||
yield join(waitForAssets); | ||
} | ||
yield call(packageActivated, pkg.name); | ||
yield put(actions.packageLoadSucceed({ pkg })); | ||
yield call(packageActivated, pkg.name, 'dashboard'); | ||
} catch (error) { | ||
@@ -39,0 +38,0 @@ yield put(actions.packageLoadFailed({ error, pkg })); |
46962
1061