Skip to content

Commit c565edc

Browse files
improve comment
1 parent 188dcda commit c565edc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/vdom/vdom-render.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,8 @@ export const renderVdom = (hostRef: d.HostRef, renderFnResults: d.VNode | d.VNod
996996

997997
/**
998998
* If the rootVnode is not a Host element, then we need to copy the attributes
999-
* from the oldVNode to the rootVnode.
999+
* from the oldVNode to the rootVnode, otherwise hydrated values are not
1000+
* reflected on the host element.
10001001
*/
10011002
if (!isHostElement) {
10021003
rootVnode.$attrs$ = oldVNode.$attrs$;

0 commit comments

Comments
 (0)