-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Tooltip] Performance issues #2774
Comments
Hi @ggcatu thank you for reporting! While it looks that your finding indicates something that we need to fix, let me advise that hover-over user-interaction of |
Hi @asudoh, any update on this, do you think this will be possibly fixed in the next month or two? We will not be able to upgrade to v10 before our next release due to the large number of design changes in it, but we are implementing a page which uses dozens of tooltips, like @ggcatu 's example and it's very noticeable... |
Please be advised that |
Hm, thanks for the info, maybe we will be able to use tooltip definition instead, it doesn't seem to have the same problem: |
Might need to do something like we did with this fix: #5336 |
I believe this should now be resolved ref carbon-design-system/carbon-components-react#2424 #5363 |
[Tooltip] Performance issues
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Tooltip component it's creating performance issues in pages where there's multiple (lot) of instances of it.
Tooltip Component
Not re-rendering, or committing changes, since no changes are made to the component itself.
Google Chrome
"carbon-components": "^9.84.1"
"carbon-components-react": "^6.106.2"
Was able to reproduce it after upgrading to latest versions.
Saferpayments
Steps to reproduce the issue
In the sandbox, you can basically click on the checkbox, and you will see the response time it's really slow.
Sandbox: https://codesandbox.io/s/codesandbox-880jt
Additional information
Using the react profiler shows up a bunch of DOM commits done by the Tooltip component.
The text was updated successfully, but these errors were encountered: