From my understanding if you useState(myObj) the Component will only rerender if the reference to the object changes not if the object changes. However sometime
useState(myObj)