ソースを参照

chore: update comment

daiwei 8 ヶ月 前
コミット
2cd5cf52c3
1 ファイル変更1 行追加1 行削除
  1. 1 1
      packages/runtime-vapor/src/apiCreateIf.ts

+ 1 - 1
packages/runtime-vapor/src/apiCreateIf.ts

@@ -35,7 +35,7 @@ export function createIf(
   } else {
   } else {
     // if _insertionAnchor is defined, insertionParent contains a static node
     // if _insertionAnchor is defined, insertionParent contains a static node
     // that should be skipped during hydration.
     // that should be skipped during hydration.
-    // Advance to the next sibling node to bypass this static node.
+    // Advance to the next sibling node of parent to skip the static node.
     if (_insertionAnchor !== undefined) {
     if (_insertionAnchor !== undefined) {
       advanceHydrationNode(_insertionParent!)
       advanceHydrationNode(_insertionParent!)
     }
     }