fix(runtime-core): handle error in async KeepAlive hooks (#4978)

This commit is contained in:
ygj6
2021-11-22 15:50:19 +08:00
committed by GitHub
parent 61720231b4
commit 820a143457
2 changed files with 31 additions and 2 deletions

View File

@@ -381,7 +381,7 @@ function registerKeepAliveHook(
}
current = current.parent
}
hook()
return hook()
})
injectHook(type, wrappedHook, target)
// In addition to registering it on the target instance, we walk up the parent