Skip to content

Commit 5562a81

Browse files
committed
chore: minor tweaks
1 parent c5450a3 commit 5562a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/apiCreateApp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ export function createAppAPI<HostElement>(
383383
// HMR root reload
384384
if (__DEV__) {
385385
context.reload = () => {
386-
// casting to ElementNamespace because TS doesn't guarantee type narrowing
387-
// over function boundaries
388386
const cloned = cloneVNode(vnode)
389387
// avoid hydration for hmr updating
390388
cloned.el = null
389+
// casting to ElementNamespace because TS doesn't guarantee type narrowing
390+
// over function boundaries
391391
render(cloned, rootContainer, namespace as ElementNamespace)
392392
}
393393
}

0 commit comments

Comments
 (0)