Reactjs – How to call a callback prop when another prop changes without omitting useEffect dependencies?
I have a simple dialog component that takes an open prop to control whether the dialog is shown or not, and an onOpen prop which is a callback to be run every time the dialog opens. I can achieve this…