fix(runtime-core): handle error in async watchEffect (#3129)

This commit is contained in:
edison
2021-03-23 17:20:52 +08:00
committed by GitHub
parent 21d1288133
commit eb1fae63f9
2 changed files with 49 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ function doWatch(
if (cleanup) {
cleanup()
}
return callWithErrorHandling(
return callWithAsyncErrorHandling(
source,
instance,
ErrorCodes.WATCH_CALLBACK,