mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Delete useless sagas file
This commit is contained in:
parent
a9aaec9fc0
commit
ae10a5c994
@ -1,42 +0,0 @@
|
|||||||
// /**
|
|
||||||
// * Gets the repositories of the user from Github
|
|
||||||
// */
|
|
||||||
//
|
|
||||||
// import { take, call, put, select, fork, cancel } from 'redux-saga/effects';
|
|
||||||
// import { LOCATION_CHANGE } from 'react-router-redux';
|
|
||||||
// import { REGISTER_PLUGIN } from 'containers/App/constants';
|
|
||||||
//
|
|
||||||
// import { getAsyncInjectors } from 'utils/asyncInjectors';
|
|
||||||
// // const { injectReducer, injectSagas } = getAsyncInjectors(store); // eslint-disable-line no-unused-vars
|
|
||||||
// import { Router, Route, Link } from 'react-router'
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * Register plugin
|
|
||||||
// */
|
|
||||||
// export function* registerPlugin() {
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * Watches for REGISTER_PLUGIN action and calls handler
|
|
||||||
// */
|
|
||||||
// export function* getPluginsWatcher() {
|
|
||||||
// yield call(registerPlugin);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * Root saga manages watcher lifecycle
|
|
||||||
// */
|
|
||||||
// export function* pluginData() {
|
|
||||||
// // Fork watcher so we can continue execution
|
|
||||||
// const watcher = yield fork(getPluginsWatcher);
|
|
||||||
//
|
|
||||||
// // Suspend execution until location changes
|
|
||||||
// yield take(LOCATION_CHANGE);
|
|
||||||
// yield cancel(watcher);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// // Bootstrap sagas
|
|
||||||
// export default [
|
|
||||||
// pluginData,
|
|
||||||
// ];
|
|
@ -22,7 +22,6 @@ export default function createRoutes(store) {
|
|||||||
name: 'home',
|
name: 'home',
|
||||||
getComponent(nextState, cb) {
|
getComponent(nextState, cb) {
|
||||||
const importModules = Promise.all([
|
const importModules = Promise.all([
|
||||||
System.import('containers/HomePage/sagas'),
|
|
||||||
System.import('containers/HomePage'),
|
System.import('containers/HomePage'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -40,7 +39,6 @@ export default function createRoutes(store) {
|
|||||||
name: 'plugins',
|
name: 'plugins',
|
||||||
getComponent(nextState, cb) {
|
getComponent(nextState, cb) {
|
||||||
const importModules = Promise.all([
|
const importModules = Promise.all([
|
||||||
System.import('containers/HomePage/sagas'),
|
|
||||||
System.import('containers/HomePage'),
|
System.import('containers/HomePage'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user