You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not really an issue, it's rather a request for some feedback.
I'm using react-measure for tooltips and since I'm working on a big app, performance becomes an issue. So I've got the following requirements:
Only start measuring the dimensions of the element if the tooltip needs to be shown
I need to call measure() every x milliseconds, because react-measure doesn't know (for good reasons) if an element's parent caused the element to move. If the call to measure() did not find new dimensions, no re-rendering should happen.
I've created a simple PausableMeasure component here which fulfills my needs for now.
Is this something you feel could benefit react-measure as well or are my requirements too niche?
The text was updated successfully, but these errors were encountered:
Hello again!
This is not really an issue, it's rather a request for some feedback.
I'm using react-measure for tooltips and since I'm working on a big app, performance becomes an issue. So I've got the following requirements:
measure()
every x milliseconds, because react-measure doesn't know (for good reasons) if an element's parent caused the element to move. If the call tomeasure()
did not find new dimensions, no re-rendering should happen.I've created a simple
PausableMeasure
component here which fulfills my needs for now.Is this something you feel could benefit react-measure as well or are my requirements too niche?
The text was updated successfully, but these errors were encountered: