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

perf: only clear existing timeouts #1060

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dten
Copy link
Contributor

@dten dten commented Nov 13, 2024

I was investigating some performance issues unmounting components on a page that has many tooltips and the profiles point a finger at clearTimeout being called very often despite no there being no shown poppers and the timeouts actually being undefined.

image

only clearing timeouts that are set makes the whole section disappear from profiles

mostly noticeable when profiling
Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for v-tooltip ready!

Name Link
🔨 Latest commit 5fe1183
🔍 Latest deploy log https://app.netlify.com/sites/v-tooltip/deploys/6734efb41b95c1000826e3e9
😎 Deploy Preview https://deploy-preview-1060--v-tooltip.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

1 participant