We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34d4991 commit 33708e8Copy full SHA for 33708e8
packages/runtime-core/src/hydration.ts
@@ -57,12 +57,14 @@ export function createHydrationFunctions(
57
} = rendererInternals
58
59
const hydrate: RootHydrateFunction = (vnode, container) => {
60
- if (__DEV__ && !container.hasChildNodes()) {
61
- warn(
62
- `Attempting to hydrate existing markup but container is empty. ` +
63
- `Performing full mount instead.`
64
- )
+ if (!container.hasChildNodes()) {
+ __DEV__ &&
+ warn(
+ `Attempting to hydrate existing markup but container is empty. ` +
+ `Performing full mount instead.`
65
+ )
66
patch(null, vnode, container)
67
+ flushPostFlushCbs()
68
return
69
}
70
hasMismatch = false
0 commit comments