You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Removing possible recursive loop in Coachmark (#26934)
* fix possible recursive loop
* change
* add in additional deps that linting didnt require
* fix: refactor useGetBounds
Moves useGetBounds() to module scope so the hook is not recreated on every render.
This also ensures we're not relying on component scope to consume props.
Updates useGetBounds() to use useEffect()'s dependency array to prevent
continual re-renders.
---------
Co-authored-by: Sean Monahan <seanmonahan@microsoft.com>
Co-authored-by: Makoto Morimoto <humbertomakotomorimoto@gmail.com>
0 commit comments