We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f57f7f1 commit 2454205Copy full SHA for 2454205
packages/perseus/src/utils/render.rs
@@ -29,6 +29,11 @@ pub(crate) fn render_or_hydrate(
29
{
30
use sycamore::web::HydrateNode;
31
32
+ // If we're forcing a proper render, then we'll have to remove existing content
33
+ if force_render {
34
+ parent.set_inner_html("");
35
+ }
36
+
37
// We need `sycamore::hydrate_to_with_scope()`!
38
// --- Verbatim copy from Sycamore, changed for known scope ---
39
// Get children from parent into a View to set as the initial node value.
0 commit comments