unirakun / k-redux-factory

Factory of Redux reducers and their associated actions and selectors.
MIT License
18 stars 4 forks source link

remove with instance object #118

Closed fabienjuif closed 6 years ago

fabienjuif commented 6 years ago

Right now we can remove instance from keyValue per their key. Add the possibility to remove them per reference equality to full instance.

pseudo code:

const = remove = ([object]) => {
  if (typeof object === 'object') {
    // remove per reference equality
  } else {
    // remove per id 
  }
}
guillaumecrespel commented 6 years ago

use object reference ? or test key for each object ?

fabienjuif commented 6 years ago

We already test key. Then add the usage of reference.