Skip to content

Commit 2454205

Browse files
committed
fix: fixed double error page display
1 parent f57f7f1 commit 2454205

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/perseus/src/utils/render.rs

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ pub(crate) fn render_or_hydrate(
2929
{
3030
use sycamore::web::HydrateNode;
3131

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+
3237
// We need `sycamore::hydrate_to_with_scope()`!
3338
// --- Verbatim copy from Sycamore, changed for known scope ---
3439
// Get children from parent into a View to set as the initial node value.

0 commit comments

Comments
 (0)