Skip to content

Commit 182f72b

Browse files
committed
fix: 'fixed' hydration issues
This is a **very temporary** fix that involves creating a dummy `<div>` as a sibling to page content. This is tested to not interfere with full page layouts, but it is certainly not ideal.
1 parent 04e1629 commit 182f72b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/perseus/src/reactor/start.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,16 @@ impl Reactor<BrowserNodeType> {
414414
// This template is reactive, and will be updated as necessary
415415
view! { cx,
416416
(*self.current_view.get())
417+
// BUG: Without this, any page that renders only one top-level node will lead to a hydration
418+
// error. Pending input from Sycamore...
419+
div {}
417420
}
418421
}
419422
)
420423
},
421424
root,
422-
// BUG Hydration is currently disabled at the system level due to critical bugs
423-
true,
424-
/* force_render, */ /* Depending on whether or not there's an error, we might force
425-
* a full render */
425+
force_render, /* Depending on whether or not there's an error, we might force
426+
* a full render */
426427
);
427428

428429
// If we successfully got here, the app is running!

0 commit comments

Comments
 (0)