fix(runtime-core): ensure custom events are not emitted anymore after unmount. (#5679)

close #5674
This commit is contained in:
Thorsten Lünborg
2022-04-14 05:47:24 +02:00
committed by GitHub
parent 8e29ef6019
commit 71c9536625
2 changed files with 28 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ export function emit(
event: string,
...rawArgs: any[]
) {
if (instance.isUnmounted) return
const props = instance.vnode.props || EMPTY_OBJ
if (__DEV__) {