fix: more work on hydration IDs with `<Suspense/>` (#545)

This commit is contained in:
Greg Johnston 2023-02-18 21:20:40 -05:00 committed by GitHub
parent 6c31d09eb2
commit ce4b0ecbe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,8 @@ where
let orig_child = Rc::new(children);
let current_id = HydrationCtx::peek();
let before_me = HydrationCtx::peek();
let current_id = HydrationCtx::next_component();
let child = DynChild::new({
#[cfg(not(any(feature = "csr", feature = "hydrate")))]
@ -142,5 +143,7 @@ where
_ => unreachable!(),
};
HydrationCtx::continue_from(before_me);
leptos_dom::View::Suspense(current_id, core_component)
}