Create

Add an entity to state.

Action: create

Example:

actionCreators.create('item', id, { fieldA: 'arbitrary' , fieldB: 'anything' })

Demo:

Add some items. Each entity will get added to the state.entities.item object, and its id will be appended on the state.ids.item array.