Skip to content
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

Update nodeRef type for React v19 compatibility #769

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Philipp91
Copy link

Fixes #768.

See also https://react.dev/blog/2024/04/25/react-19-upgrade-guide#useref-requires-argument.

Only a type change is required, because React's typings (DefinitelyTyped) were changed. The implementation in DraggableCore.js itself already tolerates / guard against .current==null everywhere.

Fixes react-grid-layout#768.

See also https://react.dev/blog/2024/04/25/react-19-upgrade-guide#useref-requires-argument.

Only a type change is required, because React's typings (DefinitelyTyped) were changed. The implementation in DraggableCore.js itself already tolerates / guard against `.current==null` everywhere.
@Hexi1997
Copy link

Hexi1997 commented Dec 9, 2024

when merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nodeRef type not compatible with React 19 typings
2 participants