Skip to content

Commit cb2fbdc

Browse files
committed
Fix useAugmentedForm resets the form one too many time
1 parent 64fbf89 commit cb2fbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-core/src/form/useAugmentedForm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const useAugmentedForm = <RecordType = any>(
8888

8989
useEffect(() => {
9090
reset(defaultValuesIncludingRecord);
91-
}, [defaultValuesIncludingRecord, reset, isReady]);
91+
}, [defaultValuesIncludingRecord, reset]);
9292

9393
// notify on invalid form
9494
useNotifyIsFormInvalid(form.control, !disableInvalidFormNotification);

0 commit comments

Comments
 (0)