Skip to content

Possible React 19 incompatibilty #2520

@ogonkov

Description

@ogonkov

Describe the bug

There is a multiple places, where defaultProps is read or set, this is probably would break in react 19

return (typeof data === 'object' || typeof data === 'function') && 'defaultProps' in data;

if (IconComponent.defaultProps) {
IconComponent.defaultProps.width = IconComponent.defaultProps.height = undefined;
}

Reproduction

Steps to reproduce

No response

Environment

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions