Closed EmrysMyrddin closed 6 years ago
This is a nice catch.
And as you said in your PR, we will maybe hit a performance issue. That's why I opened #108 .
Can you review this PR, and next steps associated. I would like to know your opinion about this.
Problem
We often have to update every values in a
keyValue
store. But with the current API, it can lead to a huge number of dispatched actions.Proposition
I propose to make
update
,addOrUpdate
andreplace
action polymorphic on their argument, allowing to pass an instance or an array of instances.Example