You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`values`|| <TypeText>object \| (values: Object) => Object; </TypeText> | An optional object to reset form values, and it's recommended to provide the **entire** defaultValues when supplied. |
19
+
|`values`|| <TypeText>object \| (values: Object) => Object </TypeText>| An optional object to reset form values, and it's recommended to provide the **entire** defaultValues when supplied. |
20
20
|`options`|`keepErrors`| <TypeText>boolean</TypeText> | All errors will remain. This will not guarantee with further user actions. |
21
21
||`keepDirty`| <TypeText>boolean</TypeText> |`DirtyFields` form state will remain, and `isDirty` will temporarily remain as the current state until further user's action.<br/><br/>**Important:** this keep option doesn't reflect form input values but only dirty fields form state. |
22
22
||`keepDirtyValues`| <TypeText>boolean</TypeText> |`DirtyFields` and `isDirty` will remained, and only none dirty fields will be updated to the latest rest value. [Check out the example.](https://codesandbox.io/s/react-keepdirtyvalues-o8to91)<br/><br/>**Important:** formState `dirtyFields` will need to be subscribed. |
0 commit comments