Created
June 23, 2018 00:47
-
-
Save lucasfernandes/ab3378e643193c42db174a0e53abd9c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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