Skip to content

Commit bfc4c0e

Browse files
committed
fix: update reset on first init createform
1 parent d503b2c commit bfc4c0e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/v2/hooks/useForm.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const useForm = <TSchema>(props: ICreateFormProps<TSchema>) => {
1919

2020
if (!_form.current) {
2121
_form.current = createForm<TSchema>(props);
22+
_form.current.reset({});
2223
}
2324

2425
const latestState = useCallback(

src/v2/hooks/useManagement.ts

-11
This file was deleted.

0 commit comments

Comments
 (0)