remove with condition

To remove an item object in an array of objects, you can write the value key of the object you want to remove.

dispatch(remove('DESTINATION',CONDITION-VALUE,CONDITION-KEY))

Example Remove user with id=8 in Users

dispatch(remove('Users', 8, 'id'))

Last updated