Closed NeaSTDL closed 5 years ago
As per suggested, the action creator functions will be modified allow variable amounts of entity objects to be used onto them.
Example:
import { actionCreatorsFor } from ''./lib/actionCreators'; const forEntity = actionCreatorsFor('fruits'); // Single entity via an object forEntity.fruits.create({id: 1, name: 'banana'}); // Multiple entities via an array of objects forEntity.fruits.create([ {id: 1, name: 'pear', color: 'green'}, {id: 2, name: 'apple', color: 'red'}, ]);
Issue addressed on commit 8181130266f7b056a0ce307f97bd6028134e1a0f.
8181130266f7b056a0ce307f97bd6028134e1a0f
As per suggested, the action creator functions will be modified allow variable amounts of entity objects to be used onto them.
Example: