Commit 9e6afaa
authored
Update nodeRef type for React v19 compatibility (#769)
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.1 parent 3fc5126 commit 9e6afaa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments