app/configureStore.js
- Remove statement
import { createPhoenixChannelMiddleware } from '@trixta/phoenix-to-redux';
. - Remove statement
const phoenixChannelMiddleWare = createPhoenixChannelMiddleware();
. - Remove
phoenixChannelMiddleWare
frommiddlewares
array.
app/reducers.js
- Remove statement
import { phoenixReducer } from '@trixta/phoenix-to-redux';
. - Remove statement
phoenix: phoenixReducer,
.
app/containers/App/saga.js
- remove phoenix saga listeners and functions from
rootScreenSaga
app/containers/PhoenixLoginScreen/
- Delete entire folder
app/navigators/AuthenticationScreenStack.js
- Remove
AuthenticationTabs.Screen
section related to PhoenixLoginScreen
**Finally, remove it from the package.json
.
- Remove
@trixta/phoenix-to-redux
fromdependencies
- Remove
phoenix
fromdependencies
We don't recommend removing redux-saga
, as we strongly feel that it's the
way to go for most redux based applications.
If you really want to get rid of it, you will have to remove its presence from several places.
app/configureStore.js
- Remove statement
import createSagaMiddleware from 'redux-saga'
. - Remove statement
const sagaMiddleware = createSagaMiddleware()
. - Remove
sagaMiddleware
frommiddlewares
array. - Remove statement
store.runSaga = sagaMiddleware.run
- Remove
store.injectedSagas = {}; // Saga registry
app/tests/store.test.js
- Remove describe block and tests for
injectSagas
- Remove describe block and tests for
runSaga
app/utils
- Remove three files:
injectSaga.js
,sagaInjectors.js
, andconstants.js
.
app/utils/checkStore.js
- Remove
runSaga: isFunction,
- Remove
injectedSagas: isObject,
app/utils/tests
- Remove two files:
injectSaga.test.js
andsagaInjectors.test.js
app/utils/tests/checkStore.test.js
- Remove
expect(() => checkStore({ ...store, injectedSagas: null })).toThrow();
- Remove
expect(() => checkStore({ ...store, runSaga: null })).toThrow();
app/sagas/index.js
Clean up screen sagas
Finally, remove it from the package.json
. Then you should be good to go with whatever
side-effect management library you want to use!
- Remove
redux-saga
fromdependencies
- Remove
eslint-plugin-redux-saga
fromdevDependencies
- Remove
eslintConfig > plugins > redux-saga
- Remove
eslintConfig > rules > redux-saga/*
To remove reselect
, remove it from your dependencies in package.json
and then write
your mapStateToProps
functions like you normally would!
app/configureStore.js
- Remove statement
import Reactotron from './ReactotronConfig';
. - Remove statement
const sagaMonitor = Reactotron.createSagaMonitor();
. - Remove statement
enhancers.push(Reactotron.createEnhancer())
.
app/ReactotronConfig.js
- Delete file.
app/App.js
- Remove statement
import('./ReactotronConfig').then(() => console.log('Reactotron Configured'));
.
**Finally, remove it from the package.json
.
- Remove
reactotron-react-native
fromdependencies
- Remove
reactotron-redux
fromdependencies
- Remove
reactotron-redux-saga
fromdependencies