Skip to content

Commit

Permalink
fix: Transition in hydrate mode that isn't initially created (closes l…
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Feb 16, 2024
1 parent 8a4b972 commit 8874295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leptos/src/transition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 8874295

Please sign in to comment.