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 usually means the page scrolls a container rather than the window (an infinite list, a dialog, a layout component). Pass that container as parent, for example parent={() => containerRef.current}. Since #215, a ref that is still empty during mount works, and the listeners follow a parent that changes. Closing as part of the backlog cleanup; please reopen with a reproduction if it still fails on the next release.
Activity
KyleAMathews commentedon Nov 12, 2026
This usually means the page scrolls a container rather than the window (an infinite list, a dialog, a layout component). Pass that container as
parent, for exampleparent={() => containerRef.current}. Since #215, a ref that is still empty during mount works, and the listeners follow a parent that changes. Closing as part of the backlog cleanup; please reopen with a reproduction if it still fails on the next release.