Skip to content

Commit d7fbdbf

Browse files
- Rolled back docs change
1 parent f7c5466 commit d7fbdbf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/docs/docs/migration-guides/v6.x upgrade guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ^6.x Upgrade Guide
1+
# 6.x Upgrade Guide
22

33
## New packages
44

@@ -189,7 +189,7 @@ Interfaces with `formContext` removed:
189189

190190
The `onChange` handling for fields has been changed to fix a serious bug related to nearly simultaneous updates losing data.
191191
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`.
193193

194194
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:
195195

@@ -999,13 +999,13 @@ Because `liveValidate` and `liveOmit` can have serious performance impacts in th
999999
10001000
### Optional Data Controls
10011001

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.
10031003

10041004
See the documentation for [enableOptionalDataFieldForType](../api-reference/uiSchema.md#enableoptionaldatafieldfortype) for more information.
10051005

10061006
### Dynamic UI Schema for Array Items
10071007

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.
10091009
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.
10101010

10111011
```typescript
@@ -1027,10 +1027,10 @@ See the [Dynamic UI Schema Examples](../api-reference/dynamic-ui-schema-examples
10271027

10281028
### Custom field `name` generation
10291029

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.
10311031

10321032
The default behavior is unchanged if the prop is not provided.
10331033

10341034
### Opt-in Fallback UI for unsupported types
10351035

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

Comments
 (0)