Skip to content

Instantly share code, notes, and snippets.

@lucasfernandes
Created June 23, 2018 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasfernandes/ab3378e643193c42db174a0e53abd9c6 to your computer and use it in GitHub Desktop.
Save lucasfernandes/ab3378e643193c42db174a0e53abd9c6 to your computer and use it in GitHub Desktop.
/* Reducers */
import { navReducer, middleware } from 'navigation';
const rootReducer = combineReducers({
nav: navReducer,
});
// Calling a separated store manager
const store = configureStore(rootReducer, rootSaga, middleware);
// Inside the creation of my store
/* Navigation */
middleware.push(rootNavigation);
enhancers.push(applyMiddleware(...middleware));
createStore(rootReducer, compose(...enhancers));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment