We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5450a3 commit 5562a81Copy full SHA for 5562a81
packages/runtime-core/src/apiCreateApp.ts
@@ -383,11 +383,11 @@ export function createAppAPI<HostElement>(
383
// HMR root reload
384
if (__DEV__) {
385
context.reload = () => {
386
- // casting to ElementNamespace because TS doesn't guarantee type narrowing
387
- // over function boundaries
388
const cloned = cloneVNode(vnode)
389
// avoid hydration for hmr updating
390
cloned.el = null
+ // casting to ElementNamespace because TS doesn't guarantee type narrowing
+ // over function boundaries
391
render(cloned, rootContainer, namespace as ElementNamespace)
392
}
393
0 commit comments