fix: ensure trigger function is awaited in useDependencies (#7830)

pull/348/MERGE
AxiosLeo 2026-04-22 07:09:09 +08:00 committed by GitHub
parent 5907c04e00
commit 3a83fb0c3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ export default function useDependencies(
} }
if (isFunction(trigger)) { if (isFunction(trigger)) {
trigger(formValues, formApi, getController()); await trigger(formValues, formApi, getController());
} }
}, },
{ deep: true, immediate: true }, { deep: true, immediate: true },