useForm Mantine
Hey guys, how can I reset form after submit form successfull with useForm ( mantine ) ?
useForm hook in Refine, you can use the reset function. You can call this reset function in your onFinish handler after the form is submitted successfully. Here's an example:reset function is called in the onSuccess callback of the useForm hook. This will clear all the form fields after a successful form submission.useFormuseFormresetresetresetonFinishonSuccessconst { formProps, reset } = useForm({
onSuccess: () => {
reset();
},
});