fix: Transition in hydrate mode that isn't initially created (closes #2279) (#2314)

This commit is contained in:
Greg Johnston 2024-02-16 08:16:09 -05:00 committed by GitHub
parent 8a4b972e0b
commit 88742952f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,9 @@ fn is_first_run(
first_run: RwSignal<bool>,
suspense_context: &SuspenseContext,
) -> bool {
if cfg!(feature = "csr") {
if cfg!(feature = "csr")
|| (cfg!(feature = "hydrate") && !HydrationCtx::is_hydrating())
{
false
} else {
match (