-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Description
Description
Currenty some types in components are incompatible with React 19. For instance, there are many places with React.RefObject<SomeType> which allow it to pass into ref prop. But in React 19 the interface has changed from this:
interface RefObject<T> {
readonly current: T | null;
}to this:
interface RefObject<T> {
current: T;
}So it doesn't allow to pass our type to ref prop anymore, because it requires null to be presented in generic.
Possible fix: every RefObject<T> rewrite as RefObject<T | null>
Additional context
No response
Validations
- Check that there isn't already an issue that pursue the same goal to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels