mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
Fix hydration mismatch in <Outlet/>
This commit is contained in:
parent
ae40f3134a
commit
cab7360bef
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ pub fn Outlet(cx: Scope) -> impl IntoView {
|
|||
let route = use_route(cx);
|
||||
let is_showing = Rc::new(Cell::new(None));
|
||||
let (outlet, set_outlet) = create_signal(cx, None);
|
||||
create_effect(cx, move |_| {
|
||||
create_isomorphic_effect(cx, move |_| {
|
||||
match (route.child(), &is_showing.get()) {
|
||||
(None, _) => {
|
||||
set_outlet.set(None);
|
||||
|
|
Loading…
Reference in a new issue