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