Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
...sagas.search,
...sagas.preparation,
...sagas.folder,
...sagas.redirect,
...sagas.notification,
};
const additionalRootSagas = additionalConfiguration.rootSagas;
if (additionalRootSagas) {
Object.assign(rootSagasToStart, additionalRootSagas);
}
Object.keys(rootSagasToStart).forEach((rootSagaToStartName) => {
rootSagas.push(call(rootSagasToStart[rootSagaToStartName]));
});
api.saga.registerMany(sagas.bootstrap);
api.saga.registerMany(sagas.preparation);
// Use for EE additional configuration
const additionalManySagas = additionalConfiguration.manySagas;
if (additionalManySagas) {
additionalManySagas.forEach((additionalManySaga) => {
api.saga.registerMany(additionalManySaga);
});
}
function* rootSaga() {
yield all(rootSagas);
}
function appFactory(storage = {}) {
const { initialState, engine } = storage;
const preReducers = [dataset.preReducers.notificationReducer, ...dataset.hors];
...sagas.http,
...sagas.search,
...sagas.preparation,
...sagas.folder,
...sagas.redirect,
...sagas.notification,
};
const additionalRootSagas = additionalConfiguration.rootSagas;
if (additionalRootSagas) {
Object.assign(rootSagasToStart, additionalRootSagas);
}
Object.keys(rootSagasToStart).forEach((rootSagaToStartName) => {
rootSagas.push(call(rootSagasToStart[rootSagaToStartName]));
});
api.saga.registerMany(sagas.bootstrap);
api.saga.registerMany(sagas.preparation);
// Use for EE additional configuration
const additionalManySagas = additionalConfiguration.manySagas;
if (additionalManySagas) {
additionalManySagas.forEach((additionalManySaga) => {
api.saga.registerMany(additionalManySaga);
});
}
function* rootSaga() {
yield all(rootSagas);
}
const additionalLocalStorage = additionalConfiguration.localStorage || {};
const localStorageKey = additionalLocalStorage.key || 'data-prep';
const preloadedState = api.localStorage.getState(localStorageKey);
...sagas.search,
...sagas.preparation,
...sagas.folder,
...sagas.redirect,
...sagas.notification,
};
const additionalRootSagas = additionalConfiguration.rootSagas;
if (additionalRootSagas) {
Object.assign(rootSagasToStart, additionalRootSagas);
}
Object.keys(rootSagasToStart).forEach((rootSagaToStartName) => {
rootSagas.push(call(rootSagasToStart[rootSagaToStartName]));
});
api.saga.registerMany(sagas.bootstrap);
api.saga.registerMany(sagas.preparation);
// Use for EE additional configuration
const additionalManySagas = additionalConfiguration.manySagas;
if (additionalManySagas) {
additionalManySagas.forEach((additionalManySaga) => {
api.saga.registerMany(additionalManySaga);
});
}
function* rootSaga() {
yield all(rootSagas);
}
const additionalLocalStorage = additionalConfiguration.localStorage || {};
const localStorageKey = additionalLocalStorage.key || 'data-prep';
const preloadedState = api.localStorage.getState(localStorageKey);
const KEEP = [
...sagas.http,
...sagas.search,
...sagas.preparation,
...sagas.folder,
...sagas.redirect,
...sagas.notification,
};
const additionalRootSagas = additionalConfiguration.rootSagas;
if (additionalRootSagas) {
Object.assign(rootSagasToStart, additionalRootSagas);
}
Object.keys(rootSagasToStart).forEach((rootSagaToStartName) => {
rootSagas.push(call(rootSagasToStart[rootSagaToStartName]));
});
api.saga.registerMany(sagas.bootstrap);
api.saga.registerMany(sagas.preparation);
// Use for EE additional configuration
const additionalManySagas = additionalConfiguration.manySagas;
if (additionalManySagas) {
additionalManySagas.forEach((additionalManySaga) => {
api.saga.registerMany(additionalManySaga);
});
}
function* rootSaga() {
yield all(rootSagas);
}
function appFactory(storage = {}) {
const { initialState, engine } = storage;