DEV Community

Discussion on: TIL: You can watch for nested properties changing in React's useEffect() hook

Collapse
 
milichev profile image
Vadym Milichev

There is no change listening in values because it's an object which is checked for equality by reference. If values is passed to the component as a property and its value is composed as a plain inline object, it will be a new value on each render.