wip: save
ci / test (push) Waiting to run Details
ci / continuous-release (push) Waiting to run Details

This commit is contained in:
daiwei 2025-08-01 17:33:49 +08:00
parent 268383f760
commit 71262384db
1 changed files with 7 additions and 3 deletions

View 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
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