Skip to content

Commit 438c46f

Browse files
- Another small optimization
1 parent f7667d8 commit 438c46f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/components/Form.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ export default class Form<
360360
isSchemaChanged || isFormDataChanged ? undefined : this.state.retrievedSchema,
361361
isSchemaChanged,
362362
formDataChangedFields,
363+
// Skip live validation for this request if no form data has changed
364+
!isFormDataChanged,
363365
);
364366
const shouldUpdate = !deepEquals(nextState, prevState);
365367
return { nextState, shouldUpdate };

0 commit comments

Comments
 (0)