Skip to content

Commit 70037aa

Browse files
committed
chore: tweaks
1 parent 2011419 commit 70037aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-vapor/src/components/Teleport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export class TeleportFragment extends VaporFragment {
100100
})
101101

102102
const nodes = this.nodes
103-
// register updateCssVars to sub fragments's effects so that
104-
// updateCssVars will be called when subtree changed
103+
// register updateCssVars to root fragments's update hooks so that
104+
// it will be called when root fragment changed
105105
if (this.parentComponent && this.parentComponent.ut) {
106106
if (isFragment(nodes)) {
107107
;(nodes.updated || (nodes.updated = [])).push(() => updateCssVars(this))

0 commit comments

Comments
 (0)