-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useIntersection warning with React 19 #2612
Comments
The same issue with useFullscreen |
The same issue with useHoverDirty |
also useScroll The overarching issue is that the Line 11 in ad33f76
See |
What is the current behavior?
Migrating to Nextjs 15.1 and React 19, the
useIntersection
started to throw a ts warning.The code in the docs does not work anymore.
The error is:
useIntersection
signature should acceptRefObject<HTMLElement | null>
.What is the expected behavior?
To not throw a warning. It actually keeps working.
A little about versions:
react-use
: 17.5.1The text was updated successfully, but these errors were encountered: