Now that master has the initial scaffolding, we can start to add the simple actual reducer factories that will be used to populate the defaultReducerFactories. This PR adds a reducer for handling all action types that deal with fetching data.
Of note:
Specifically handles actions that are FETCH_* related.
Resource Reducer guards the resource that this reducer acts upon, which allows it to be agnostic of any resource, which means it can be used to handle FETCH cases for all resources
Allows reducer to guard just against non FETCH_* actions
Allows reducer to parse only actions with API_LIFECYCLE_SUFFIX'es
Additional Changes:
Add lodash.unset, clonedeep. Necessary for non-destructively operating on the "old state" in reducers
Add dynamic specs, which can be used for the future CREATE_*, UPDATE_*, REMOVE_* reducer factories. Some are also used in the resource-reducer.spec.ts
Context
Now that
master
has the initial scaffolding, we can start to add the simple actual reducer factories that will be used to populate thedefaultReducerFactories
. This PR adds a reducer for handling all action types that deal with fetching data.Of note: Specifically handles actions that are
FETCH_*
related.Additional Changes:
lodash.unset
,clonedeep
. Necessary for non-destructively operating on the "old state" in reducersCREATE_*
,UPDATE_*
,REMOVE_*
reducer factories. Some are also used in the resource-reducer.spec.ts