Last updated 1 year ago
To update an item object in an array of objects, you can write the value key of the object you want to update.
dispatch(update('DESTINATION',CONDITION-VALUE,CONDITION-KEY))
Example: Update Users with id=2
Users
id=2
dispatch(update('Users', { name: "Crawfish Lover" }, 2, 'id'))