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
ref of Trigger components gets detached on every render. Noticed it when tried to use together with https://www.npmjs.com/package/react-intersection-observer. It affected perf a lot as this lib is very sensitive to ref callback calls
Expected behavior
Ref should be stable as component doesn't go anywhere
Bug report
Current Behavior
ref
of Trigger components gets detached on every render. Noticed it when tried to use together with https://www.npmjs.com/package/react-intersection-observer. It affected perf a lot as this lib is very sensitive to ref callback callsExpected behavior
Ref should be stable as component doesn't go anywhere
Reproducible example
https://codesandbox.io/p/sandbox/zpzpwh
Open the console and try clicking on the button. After every click ref gets re-attached
Suggested solution
Additional context
Your environment
The text was updated successfully, but these errors were encountered: