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
The docs state that the IntersectionObserverEntry is provided to both onViewportEnter and onViewportLeave, but that is not actually the case as can be seen here:
1. Read the FAQs 馃憞
2. Describe the bug
The docs state that the
IntersectionObserverEntry
is provided to bothonViewportEnter
andonViewportLeave
, but that is not actually the case as can be seen here:motion/src/motion/features/viewport/use-viewport.ts
Lines 86 to 89 in ac68f26
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
A CodeSandbox minimal reproduction will allow us to quickly follow the reproduction steps. Without one, this bug report won't be accepted.
https://codesandbox.io/s/blissful-dirac-lyu9b?file=/src/App.js
You can see that
undefined
is logged to the console4. Steps to reproduce
Steps to reproduce the behavior:
{ entry: undefined }
.5. Expected behavior
That
entry
should be an instance ofIntersectionObserverEntry
as stated in the docsThe text was updated successfully, but these errors were encountered: