Skip to content

Commit

Permalink
remove placeholder insert in SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Nov 4, 2024
1 parent edf3891 commit 5b06b06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tachys/src/view/iterators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ where
}

fn html_len(&self) -> usize {
self.iter().map(RenderHtml::html_len).sum::<usize>() + 2
self.iter().map(RenderHtml::html_len).sum::<usize>()
}

fn to_html_with_buf(
Expand All @@ -449,7 +449,6 @@ where
for child in self.into_iter() {
child.to_html_with_buf(buf, position, escape, mark_branches);
}
buf.push_str("<!>");
}

fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
Expand All @@ -469,7 +468,6 @@ where
mark_branches,
);
}
buf.push_sync("<!>");
}

fn hydrate<const FROM_SERVER: bool>(
Expand Down

0 comments on commit 5b06b06

Please sign in to comment.