Lazy init admin form adapter
This commit is contained in:
@@ -43,9 +43,10 @@ function initSetupVbenForm() {
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
const useVbenForm = ((...args: Parameters<typeof useForm<ComponentType>>) => {
|
||||
initSetupVbenForm();
|
||||
|
||||
const useVbenForm = useForm<ComponentType>;
|
||||
return useForm<ComponentType>(...args);
|
||||
}) as typeof useForm<ComponentType>;
|
||||
|
||||
export { initSetupVbenForm, useVbenForm, z };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user