export default function getReducer() { return combineReducers({ auth: authReducer }); }
module.hot.accept('../reducers', () => store.replaceReducer(combineReducers({ routing: routerReducer, pulseApp: require('../reducers') })) );
constructor() { super(); this.registry = { default: () => ({}), }; this.store = createStore(combineReducers(this.registry), {}); }
// NOTE: The init[blank]Page are exclusively used by CRA for testing only export default function (initialStore={}) { const reducers = combineReducers({ user }); const middleware = [thunkMiddleware, loggerMiddleware]; return compose( applyMiddleware(...middleware) )(createStore)(reducers, initialStore); // the initialStore value is passed into the Redux createStore function. The store is now hydrated with the data from the server }
const configureStore = () => { const initialState = {}; return createStore( combineReducers({...reducers}), initialState, enhancers() ); }
export default function getReducer (client) { return combineReducers({ apollo: client.reducer() }) }
/** * Root reducer for the applciation * @param {} history */ const rootReducer = history => combineReducers({ router: connectRouter(history), articles: articlesReducer })
// Allow dependency injection of extra reducers, we need this for SSR const getReducers = extraReducers => { return combineReducers({ modals, toasts, ...extraReducers, }); }
const rootReducer = asyncReducers => combineReducers({ Alerts, Settings, router, ...asyncReducers })
export default function createReducer(asyncReducers) { return combineReducers({ media: (state = initialDrawerState) => state, routing, ...asyncReducers, }); }
// NOTE: The init[blank]Page are exclusively used by CRA for testing only export default function (initialStore={}) { const reducers = combineReducers({ user }); const middleware = [thunkMiddleware, loggerMiddleware]; return compose( applyMiddleware(...middleware) )(createStore)(reducers, initialStore); // the initialStore value is passed into the Redux createStore function. The store is now hydrated with the data from the server }
combineReducers({ songs: songsReducer, selectedSong: selectedSongReducer, posts: postListReducer, dummYReducer: () => 9 })
const makeRootReducer = (asyncReducers) => { return combineReducers({ location: locationReducer, ...asyncReducers }) }
const rootReducer = () => combineReducers({ auth, stuff, })
const makeRootReducer = (asyncReducers) => { return combineReducers({ location: locationReducer, notification: notificationReducer, ...asyncReducers }) }