Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react): fix tooltip performance issue #505

Merged
merged 2 commits into from
Jan 12, 2022
Merged

fix(react): fix tooltip performance issue #505

merged 2 commits into from
Jan 12, 2022

Conversation

scurker
Copy link
Member

@scurker scurker commented Jan 12, 2022

This fixes a tooltip performance issue where the useEffect was intending to be acting on the show prop, but there was also an internal function named show causing the tooltip to re-run the useEffect for every render exponentially adding event listeners eventually causing anything using this to be very slow or crash.

@github-actions
Copy link
Contributor

Preview branch generated at https://tooltip-perf.d1gko6en628vir.amplifyapp.com

@scurker scurker enabled auto-merge (squash) January 12, 2022 18:29
@scurker scurker disabled auto-merge January 12, 2022 18:31
@scurker scurker enabled auto-merge (squash) January 12, 2022 18:31
@scurker scurker merged commit 4fc5b1a into develop Jan 12, 2022
@scurker scurker deleted the tooltip-perf branch January 12, 2022 18:50
@github-actions
Copy link
Contributor

Preview branch generated at https://tooltip-perf.d1gko6en628vir.amplifyapp.com

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