Skip to content

Commit

Permalink
đŸ˜¾ fix #11514 issue under strict mode reset invoke twice reset mounted…
Browse files Browse the repository at this point in the history
… field names with keepDirtyValues (#11546)
  • Loading branch information
bluebill1049 committed Feb 24, 2024
1 parent 2d58212 commit 92a9a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/createFormControl.ts
Expand Up @@ -1244,7 +1244,7 @@ export function createFormControl<
}

_names = {
mount: new Set(),
mount: keepStateOptions.keepDirtyValues ? _names.mount : new Set(),
unMount: new Set(),
array: new Set(),
watch: new Set(),
Expand Down

0 comments on commit 92a9a97

Please sign in to comment.