Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Oct 25, 2024
1 parent fca2108 commit 222eb53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,10 @@ function baseCreateRenderer(
parentSuspense,
null,
)
initialVNode.el = instance.subTree.el
// when data-allow-mismatch is set, the component vnode's el may be incorrect, so it should be updated
if (initialVNode) {
initialVNode.el = instance.subTree.el
}
if (__DEV__) {
endMeasure(instance, `hydrate`)
}
Expand Down

0 comments on commit 222eb53

Please sign in to comment.