feat: order of init is determined

This commit is contained in:
Jacob Nguyen
2025-02-03 17:36:50 -06:00
committed by GitHub
parent aa8433de84
commit 826118e201

View File

@@ -73,7 +73,10 @@ export class Container {
const hookFunctions = this.hooks.get(name) || [];
for (const hookObject of hookFunctions) {
//@ts-ignore .registerHooks verifies the hookObject hasCallableMethod
hookObject[name](...args);
const result = hookObject[name](...args);
if(result instanceof Promise) {
await result;
}
}
}