lore-hook-reducers
Creates a set of reducers for each model from blueprints
Creates a set of reducers for each model from blueprints
Specify dependencies between child reducers, which will determine the order they are called in, as well as what data is passed in through the third 'options' argument:
function someReducer(state, action, options) {
// your reducer code...
}
The `options.nextState` property will contain the results of the child reducers you have declared a dependency on.
The default dependency structure (based on the built-in blueprints) looks like this:
dependencies: {
modelName: {
byId: [],
byCid: [],
find: ['byId', 'byCid']
}
}