That would measure the component only on mount, so it would not notice if it’s layout changed.
You need to run it without the dependency array or add all layout-changing props and state to it.
You need to run it without the dependency array or add all layout-changing props and state to it.
No comments yet.