Worse performance vs V4? #1006
-
I'm migrating my app from v4 to v5 and I'm noticing some flickering / performance issues. For comparison: V4: V5: Notice that in V5 the tooltip seems to stay on the previous anchor for a few milliseconds before moving to the new anchor, then disappears and reappears. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
This is most likely an issue with implementation on your end. Are you able to share some samples from your project so we can give you some suggestions on how to improve this? |
Beta Was this translation helpful? Give feedback.
-
Sure. I haven't changed anything with the implementation other than updating the data-attributes on the anchors and the props on the <SidebarItem
data-tooltip-id="sidebar"
data-tooltip-content="Simple test"
data-tooltip-place="right"
>
Get Started
</SidebarItem>
// ...
<Tooltip id="sidebar" class="tooltip" /> It's also worth pointing out that the tooltip does not hide immediately on mouseout, there is a small delay, even when |
Beta Was this translation helpful? Give feedback.
This should've been enough to diagnose it, my bad. As you can see on the README file (also on the docs), importing the default CSS file is NOT optional.
You can still use your
.tooltip
class to style the tooltip as you want, but (as you've just experienced) the default styling is NOT just cosmetic.