data-driven-forms / react-forms

React library for rendering forms.
https://data-driven-forms.org/
Apache License 2.0
295 stars 85 forks source link

Refactor of defaultProps usages to use default parameters instead #1439

Closed danbrown7 closed 7 months ago

danbrown7 commented 7 months ago

Scope: All around the library

Description When using numerous different components across the library, this error is received

Warning: FormTemplate: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Schema Any minimal schema which uses a MUI Text box or something will reproduce this

Is there a timeline for this refactoring/will it be occuring?

Hyperkid123 commented 7 months ago

Hi @danbrown7

Is there a timeline for this refactoring/will it be occurring?

Not really. We had some plans to release a new major version of the packages, but it turned out there was no need for substantial changes.

So I think we should focus on the refactoring you have mentioned ASAP.

Hyperkid123 commented 7 months ago

@danbrown7 can you share what packages and what versions you use?

danbrown7 commented 7 months ago

@danbrown7 can you share what packages and what versions you use?

I currently use react-form-renderer common mui-component-mapper

All on version 3.22.1

Hyperkid123 commented 7 months ago

@danbrown7 a new version with a fix should be released shortly.

rvsia commented 7 months ago

:tada: This issue has been resolved in version 3.22.3 :tada:

The release is available on

Data-Driven-Forms.org!