fix(runtime-core): ensure custom events are not emitted anymore after unmount. (#5679)
close #5674
This commit is contained in:
@@ -73,6 +73,7 @@ export function emit(
|
||||
event: string,
|
||||
...rawArgs: any[]
|
||||
) {
|
||||
if (instance.isUnmounted) return
|
||||
const props = instance.vnode.props || EMPTY_OBJ
|
||||
|
||||
if (__DEV__) {
|
||||
|
||||
Reference in New Issue
Block a user