Skip to content

Commit 775aaae

Browse files
committed
chore: ensure the test passes
1 parent 940ee69 commit 775aaae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/vnode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
} from './componentRenderContext'
4040
import { RendererNode, RendererElement } from './renderer'
4141
import { NULL_DYNAMIC_COMPONENT } from './helpers/resolveAssets'
42-
import { hmrDirtyComponents, isHmrUpdating } from './hmr'
42+
import { hmrDirtyComponents } from './hmr'
4343
import { convertLegacyComponent } from './compat/component'
4444
import { convertLegacyVModelProps } from './compat/componentVModel'
4545
import { defineLegacyVNodeProperties } from './compat/renderFn'
@@ -425,7 +425,7 @@ function createBaseVNode(
425425
) {
426426
// #6978 the children maybe a hoisted array that should be cloned
427427
// since it maybe changed during HMR
428-
if (__DEV__ && isHmrUpdating && isArray(children)) {
428+
if (__DEV__ && isArray(children)) {
429429
children = [...children]
430430
}
431431

0 commit comments

Comments
 (0)