]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: save
authordaiwei <daiwei521@126.com>
Fri, 1 Aug 2025 09:33:49 +0000 (17:33 +0800)
committerdaiwei <daiwei521@126.com>
Fri, 1 Aug 2025 09:33:49 +0000 (17:33 +0800)
packages/runtime-vapor/src/fragment.ts

index f21ac9b577d4b7339ac6a9aad4afa1592c61efb9..cee29ace4262a776f1373cf8f5f9a7ca20d39ea4 100644 (file)
@@ -163,9 +163,13 @@ export class DynamicFragment extends VaporFragment {
       this.anchor = locateVaporFragmentAnchor(currentHydrationNode!, '')!
     } else {
       let anchor = locateVaporFragmentAnchor(currentHydrationNode!, label)!
-      if (!anchor && (label === 'slot' || label === 'if')) {
-        // fallback to fragment end anchor for ssr vdom slot
-        anchor = locateVaporFragmentAnchor(currentHydrationNode!, ']')!
+      if (!anchor) {
+        // TODO: comment anchors are not included in ssr slot vnode fallback
+        if (label === 'slot') {
+          // fallback to fragment end anchor for
+          anchor = locateVaporFragmentAnchor(currentHydrationNode!, ']')!
+        } else if (label === 'if') {
+        }
       }
       if (anchor) {
         this.anchor = anchor