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.

onMouseOver/onMouseLeave/etc. functions are not stable

See original GitHub issue

For usual <div> or other html components this is not an issue. But if I pass these functions through several components these intermediate components rerender too often.

I need this component hierarchy when I want to only show a single Popper while there are many anchorEls.

If it’s not hard to make these functions stable, I guess it will bring value.

P.S. I could provide a PR if you agree that this is useful

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jedwards1211commented, Aug 16, 2022

Thus far, I’ve tried to support MUI v4 still. I’d rather dig into it myself, but thanks!

0reactions
jedwards1211commented, Dec 12, 2022

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set Condition in JavaScript event when it will ...
I think you want to use .addEventListener() in order to make it work as you expect. This is how it should be done:...
Read more >
Difference between mouseover, mouseenter and mousemove ...
Example: The following example demonstrates the difference between onmousemove, onmouseenter and onmouseover events used in JavaScript: ...
Read more >
OnMouseOver etc just dont work - Unity Forum
I have a project using OnMouseEnter/Exit in 2.1, and when I imported it into 2.5 it continues to work with no problems. Code...
Read more >
I want to cover the onMouseover event in JavaScript by writing ...
1 Answer 1 · I'd recommend setting some data attribute to rely on in jest tests to grab exactly what you want versus...
Read more >
Moving the mouse: mouseover/out, mouseenter/leave
The mousemove event triggers when the mouse moves. But that doesn't mean that every pixel leads to an event. The browser checks the...
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