Skip to content

Fix getWidgets to stop using deprecated defaultProps for options and react-is.isForwardRef() #4907

@heath-freenome

Description

@heath-freenome

Prerequisites

What theme are you using?

utils

Version

6.x

In order to support React 19 properly, we will have to update the mergeWidgetOptions() function in @rjsf/utils getWidget.ts to stop looking for .defaultProps.

Since it is using defaultProps to merge the options together, this will be a breaking change and thus will have to be done in v7.

Make sure to update the migration guide to instruct people how to update their widgets to create the same behavior

Also, React 19 doesn't support react-is.isForwardRef() function either, so this will have to be removed as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions