Skip to content

Fix types to work with React 19 #2459

@amje

Description

@amje

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

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions