I'm a bit curious why did they implement it that way and we have to destructure and override the previous object instead of it being done so automatically by the hook. Was it on purpose for some specific reason?
setObject(...object, objProp : newProp) //why??
EDIT: I'm thinking now that maybe they left it that way to allow for greater flexibility in case we want to replace the entire object with the new props instead of simply updating the old ones.. I could be wrong though