fix: more work on hydration IDs with `<Suspense/>` (#545)
This commit is contained in:
parent
6c31d09eb2
commit
ce4b0ecbe1
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue