Skip to content

Commit a1b277b

Browse files
robbieculkinnickgros
authored andcommitted
playground
1 parent 42c2571 commit a1b277b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/playground/src/components/Header.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ const liveSettingsBooleanSchema: RJSFSchema = {
7070
noValidate: { type: 'boolean', title: 'Disable validation' },
7171
noHtml5Validate: { type: 'boolean', title: 'Disable HTML 5 validation' },
7272
focusOnFirstError: { type: 'boolean', title: 'Focus on 1st Error' },
73+
experimental_componentUpdateStrategy: {
74+
type: 'string',
75+
title: 'Component update strategy',
76+
default: 'customDeep',
77+
enum: ['customDeep', 'default'],
78+
},
7379
showErrorList: {
7480
type: 'string',
7581
default: 'top',

packages/playground/src/components/Playground.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default function Playground({ themes, validators }: PlaygroundProps) {
4242
readonly: false,
4343
omitExtraData: false,
4444
liveOmit: false,
45+
experimental_componentUpdateStrategy: 'customDeep',
4546
experimental_defaultFormStateBehavior: { arrayMinItems: 'populate', emptyObjectFields: 'populateAllDefaults' },
4647
});
4748
const [otherFormProps, setOtherFormProps] = useState<Partial<FormProps>>({});

0 commit comments

Comments
 (0)