question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Tooltip] Performance issues

See original GitHub issue

[Tooltip] Performance issues

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you’re having.

Tooltip component it’s creating performance issues in pages where there’s multiple (lot) of instances of it.

Is this issue related to a specific component?

Tooltip Component

What did you expect to happen? What happened instead? What would you like to see changed?

Not re-rendering, or committing changes, since no changes are made to the component itself.

What browser are you working in?

Google Chrome

What version of the Carbon Design System are you using?

“carbon-components”: “^9.84.1” “carbon-components-react”: “^6.106.2”

Was able to reproduce it after upgrading to latest versions.

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Saferpayments

Steps to reproduce the issue

  1. Create a component
  2. Add a bunch of tooltip components
  3. Suffer bad performance

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.

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JSoetcommented, May 28, 2019

Hm, thanks for the info, maybe we will be able to use tooltip definition instead, it doesn’t seem to have the same problem: https://codesandbox.io/s/codesandbox-5z2k4

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Tooltip] Performance issue when lots of tooltips are used in a ...
Table becomes laggy when tooltips are used. Expected Behavior. Table remains performant when tooltips are used. Steps to Reproduce. This ...
Read more >
Extremely slow performance showing a tooltip, even...
I set up a file which plays with different calculation groups, and in the final result, when 4 diferent calculation groups are in...
Read more >
chakra-tooltip-performance-issue - CodeSandbox
Sign up for free to save your work0/3 Sandboxes used - Anonymous. CodeSandbox. chakra-tooltip-performance-issue. 0. Embed Fork Create Sandbox Sign in.
Read more >
Tooltip performance issue with large series - Highcharts
Hi, I am trying to create a line chart with series data containing 164450 rows. I see 2 problems - It takes some...
Read more >
Tooltip Performance: Best Practices | by S. B. | Medium
Tooltip Performance: Best Practices. Tooltips are a problem. I wrote a couple of tooltip plugins myself and I used many of the popular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found