It says in the createReducer
function of reducers.js
that it creates the main reducer with the asynchronously loaded ones:
/**
* Creates the main reducer with the asynchronously loaded ones
*/
export default function createReducer(asyncReducers) {
return combineReducers({
route: routeReducer,
global: globalReducer,
language: languageProviderReducer,
...asyncReducers,
});
}
When you generate a route, the reducers are injected there. So which reducers should be in reducers.js
? What exactly are async reducers
?