Skip to content

Conversation

@spmonahan
Copy link
Collaborator

No description provided.

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.
@micahgodbolt micahgodbolt merged commit fd75d4c into micahgodbolt:coachmark-fix-loop Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants