Selects all normalized entities of the state, regardless of their schema. This selector should be used to enable denormalizing projector functions access to all needed schema entities.
Select the result order of the last set operation.
Create a schema bound projector function to denormalize an object of normalized entities
The schema to bind this selector to
Create a schema bound selector which denormalizes all entities with the given schema.
The schema to bind this selector to
Create a schema bound projector function to denormalize a single entity.
The schema to bind this selector to
Create a schema bound denormalizer.
The schema to bind this selector to
Creates an object of selectors and projector functions bound to the given schema.
The schema to bind the selectors and projectors to
Create a schema bound denormalizer.
The schema to bind this selector to
Default getter for the normalized state
any state
normalized entity state object
NormalizeChildActionPayload
The normalizing reducer function which will handle actions with the types
NormalizeActionTypes.SET_DATA
, NormalizeActionTypes.ADD_DATA
and NormalizeActionTypes.REMOVE_DATA
.
On an NormalizeActionTypes.SET_DATA
action:
All entities and childs of the given schema will be replaced with the new entities.
On an NormalizeActionTypes.ADD_DATA
action:
Entities are identified by their id attribute set in the schema passed by the payload. Existing entities will be overwritten by updated data, new entities will be added to the store.
On an NormalizeActionTypes.REMOVE_DATA
action:
Entities are identified by their id attribute set in the schema passed by the payload.
The entity with the passed id will be removed. If a removeChildren
option is set in the action
payload, it is assumed as a map of schema keys to object property names. All referenced children
of the entity will be read by the object propety name and removed by the schema key.
The current state
The dispatched action, one of NormalizeActionTypes.ADD_DATA
or NormalizeActionTypes.REMOVE_DATA
.
The initial state for the normalized entity state.
Generated using TypeDoc
The state key under which the normalized state will be stored