diff --git a/docs/js/remove.md b/docs/js/remove.md index d49523bd16..2b34de61ae 100644 --- a/docs/js/remove.md +++ b/docs/js/remove.md @@ -6,17 +6,20 @@ way to go for most redux based applications. If you really want to get rid of it, you will have to delete its traces from several places. **app/store.js** + 1. Remove statement `import createSagaMiddleware from 'redux-saga'`. 2. Remove statement `const sagaMiddleware = createSagaMiddleware()`. 3. Remove `sagaMiddleware` from `middlewares` array. 4. Remove statement `store.runSaga = sagaMiddleware.run` **app/utils/asyncInjectors.js** + 1. Remove `runSaga: isFunction` from `shape`. 2. Remove function `injectAsyncSagas`. 3. Do not export `injectSagas: injectAsyncSagas(store, true)`. **app/routes.js** + 1. Do not pull out `injectSagas` from `getAsyncInjectors()`. 2. Remove `sagas` from `importModules.then()`. 3. Remove `injectSagas(sagas.default)` from every route that uses Saga. @@ -56,6 +59,3 @@ const history = syncHistoryWithStore(browserHistory, store, { selectLocationState: selectLocationState(), }); ``` - - -How does this look?