Skip to content

Commit 63c5106

Browse files
committed
test: add more tests
1 parent 4b0d95f commit 63c5106

File tree

2 files changed

+255
-228
lines changed

2 files changed

+255
-228
lines changed

packages/runtime-core/src/hmr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function rerender(id: string, newRender?: Function): void {
9797
// this flag forces child components with slot content to update
9898
isHmrUpdating = true
9999
if (instance.vapor) {
100-
instance.hmrRerender!()
100+
if (!instance.isUnmounted) instance.hmrRerender!()
101101
} else {
102102
const i = instance as ComponentInternalInstance
103103
// #13771 don't update if the job is already disposed

0 commit comments

Comments
 (0)