Skip to content

Update nodeRef type for React v19 compatibility#769

Merged
STRML merged 1 commit intoreact-grid-layout:masterfrom
Philipp91:patch-1
Jun 25, 2025
Merged

Update nodeRef type for React v19 compatibility#769
STRML merged 1 commit intoreact-grid-layout:masterfrom
Philipp91:patch-1

Conversation

@Philipp91
Copy link
Copy Markdown
Contributor

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
Copy Markdown

Hexi1997 commented Dec 9, 2024

when merge?

@frilox042
Copy link
Copy Markdown

Can this PR be merged?

It will fix the typing issue with this lib and allow people to migrate to react@19 smoothly

@RoyerXvz
Copy link
Copy Markdown

merge please

@karinfam
Copy link
Copy Markdown

karinfam commented Apr 9, 2025

Merge soon? 🤞

@Snimpo
Copy link
Copy Markdown

Snimpo commented Apr 9, 2025

Merge?

@leiter84
Copy link
Copy Markdown

leiter84 commented Apr 17, 2025

Can we have it merged? It is a one line commit pending from December :)

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

9 participants