You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/docs/migration-guides/v6.x upgrade guide.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# ^6.x Upgrade Guide
1
+
# 6.x Upgrade Guide
2
2
3
3
## New packages
4
4
@@ -189,7 +189,7 @@ Interfaces with `formContext` removed:
189
189
190
190
The `onChange` handling for fields has been changed to fix a serious bug related to nearly simultaneous updates losing data.
191
191
Previously in 5.x, data change handling worked by passing a complete `newFormData` object up to the `Form` from the underlying `Field`s.
192
-
In ^6.x, data change handling now works by passing just the changed `newValue` for a `Field` and the `path` array of the `Field` within the `formData`, with the `Form` itself being responsible for injecting the changed data into the `formData`.
192
+
In 6.x, data change handling now works by passing just the changed `newValue` for a `Field` and the `path` array of the `Field` within the `formData`, with the `Form` itself being responsible for injecting the changed data into the `formData`.
193
193
194
194
As a result, the `FieldProps` interface was updated with the following breaking change so that custom `Field` authors are forced to respond to this update:
195
195
@@ -999,13 +999,13 @@ Because `liveValidate` and `liveOmit` can have serious performance impacts in th
999
999
1000
1000
### Optional Data Controls
1001
1001
1002
-
RJSF ^6.x introduces a new feature that allows developers to provide a condensed UI for users who don't care to enter an optional list of array items or set of optional object fields.
1002
+
RJSF 6.x introduces a new feature that allows developers to provide a condensed UI for users who don't care to enter an optional list of array items or set of optional object fields.
1003
1003
1004
1004
See the documentation for [enableOptionalDataFieldForType](../api-reference/uiSchema.md#enableoptionaldatafieldfortype) for more information.
1005
1005
1006
1006
### Dynamic UI Schema for Array Items
1007
1007
1008
-
RJSF ^6.x introduces a new feature that allows dynamic UI schema generation for array items.
1008
+
RJSF 6.x introduces a new feature that allows dynamic UI schema generation for array items.
1009
1009
The `items` property in a `uiSchema` can now accept a function that returns a UI schema based on the array item's data, index, and form context.
1010
1010
1011
1011
```typescript
@@ -1027,10 +1027,10 @@ See the [Dynamic UI Schema Examples](../api-reference/dynamic-ui-schema-examples
1027
1027
1028
1028
### Custom field `name` generation
1029
1029
1030
-
RJSF ^6.x adds support for customizing how HTML `name` attributes are generated for form fields via the new [`nameGenerator`](../api-reference/form-props.md#namegenerator) prop. This enables proper form data submission to backend frameworks that expect specific naming conventions like bracket notation (`root[tasks][0][title]`) for PHP/Rails or dot notation (`root.tasks.0.title`) for other frameworks.
1030
+
RJSF 6.x adds support for customizing how HTML `name` attributes are generated for form fields via the new [`nameGenerator`](../api-reference/form-props.md#namegenerator) prop. This enables proper form data submission to backend frameworks that expect specific naming conventions like bracket notation (`root[tasks][0][title]`) for PHP/Rails or dot notation (`root.tasks.0.title`) for other frameworks.
1031
1031
1032
1032
The default behavior is unchanged if the prop is not provided.
1033
1033
1034
1034
### Opt-in Fallback UI for unsupported types
1035
1035
1036
-
RJSF ^6.x introduces a new `FallbackField` component that provides a user-friendly UI for unsupported or unrecognized schema types. This new functionality displays a selection box used to choose a JSON primitive type, and a field for the formData that matches the selected type. To use this new feature, which takes the place of the existing `UnsupportedField` component, set the new `useFallbackUiForUnsupportedType` prop to `true` on the `Form` component.
1036
+
RJSF 6.x introduces a new `FallbackField` component that provides a user-friendly UI for unsupported or unrecognized schema types. This new functionality displays a selection box used to choose a JSON primitive type, and a field for the formData that matches the selected type. To use this new feature, which takes the place of the existing `UnsupportedField` component, set the new `useFallbackUiForUnsupportedType` prop to `true` on the `Form` component.
0 commit comments