diff --git a/src/useForm.ts b/src/useForm.ts index dba99f18..9dd90dbd 100644 --- a/src/useForm.ts +++ b/src/useForm.ts @@ -203,7 +203,7 @@ export class FormStore { }; }; private onFormLoad: InternalHooks['onFormLoad'] = () => { - this.config?.onFormLoad(); + this.config?.onFormLoad?.(); }; private notifyWatch = (namePath: InternalNamePath[] = []) => {