Skip to content

Commit

Permalink
馃悶 fix #11229 issue with values not re-render the root form
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebill1049 committed Nov 25, 2023
1 parent 1eae062 commit 447b485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export function useForm<
if (props.values && !deepEqual(props.values, _values.current)) {
control._reset(props.values, control._options.resetOptions);
_values.current = props.values;
updateFormState((state) => ({ ...state }));
} else {
control._resetDefaultValues();
}
Expand Down

0 comments on commit 447b485

Please sign in to comment.