switch to comments as placeholder nodes (#2579)
This commit is contained in:
1 parent
30f6986283
commit
4cab834640
8 files changed
+29
-24
No files matched your search
@@ -174,11 +174,7 @@ impl Renderer {
|
||||
|
||||
DynamicNode::Placeholder(_) => {
|
||||
if self.pre_render {
|
||||
write!(
|
||||
buf,
|
||||
"<pre data-node-hydration={} hidden></pre>",
|
||||
self.dynamic_node_id
|
||||
)?;
|
||||
write!(buf, "<!--placeholder{}-->", self.dynamic_node_id)?;
|
||||
self.dynamic_node_id += 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user