ResetValues
Reset the values to the initial state
resetValues()
const TsForm = createForm({
name: "user",
initialValues: {
name: "Leandro",
},
});
TsForm.field("name").setValue("username");
TsForm.getValues();
// {name: "username"}
TsForm.resetValues();
TsForm.getValues();
// {name: "Leandro"}