fix: don't override a text node's 'next sibling after text' position if it's in Either, now that they don't have separate marker nodes

This commit is contained in:
Greg Johnston 2024-06-24 20:42:13 -04:00
parent 70655b57b1
commit 8b142c72f0

View file

@ -162,7 +162,6 @@ where
right.to_html_with_buf(buf, position, escape)
}
}
*position = Position::NextChild;
}
fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
@ -179,7 +178,6 @@ where
Either::Right(right) => right
.to_html_async_with_buf::<OUT_OF_ORDER>(buf, position, escape),
}
*position = Position::NextChild;
}
fn hydrate<const FROM_SERVER: bool>(
@ -527,7 +525,6 @@ macro_rules! tuples {
match self {
$([<EitherOf $num>]::$ty(this) => this.to_html_with_buf(buf, position, escape),)*
}
*position = Position::NextChild;
}
fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
@ -538,7 +535,6 @@ macro_rules! tuples {
match self {
$([<EitherOf $num>]::$ty(this) => this.to_html_async_with_buf::<OUT_OF_ORDER>(buf, position, escape),)*
}
*position = Position::NextChild;
}
fn hydrate<const FROM_SERVER: bool>(