Right now there is no simple way to add multiple items at once to a map. We have to dispatch an add action for each element when we want to add a list of items.
It would be nice to have a addAllActionTypes option that would iterate on the action's payload and add all items. This could also need a collectionGetter option.
For lists, since you're using Array.prototype.concat, the add actions work for adding both single and multiple items.
Right now there is no simple way to add multiple items at once to a map. We have to dispatch an add action for each element when we want to add a list of items.
It would be nice to have a
addAllActionTypesoption that would iterate on the action's payload and add all items. This could also need acollectionGetteroption.For lists, since you're using
Array.prototype.concat, the add actions work for adding both single and multiple items.