fix: hydration ID clash with Suspense > Outlet > Suspense (closes #1863) (#1864)

This commit is contained in:
Greg Johnston 2023-10-09 16:22:43 -04:00 committed by GitHub
parent a302257129
commit 9af1c7e1a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,7 @@ use web_sys::AnimationEvent;
)]
#[component]
pub fn Outlet() -> impl IntoView {
_ = HydrationCtx::next_component();
let id = HydrationCtx::id();
let route = use_route();
let route_states = expect_context::<Memo<crate::RouterState>>();