How to use the @talend/react-cmf.saga function in @talend/react-cmf

To help you get started, we’ve selected a few @talend/react-cmf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
...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];
github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
...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);
github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
...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 = [
github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
...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;