From b9961db3565cefd0ffc67ea18e460e5e4626ba43 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 22 Dec 2023 15:23:55 -0500 Subject: [PATCH] fix: `` fallback should show on if client-rendered (closes #2123) --- leptos/src/transition.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leptos/src/transition.rs b/leptos/src/transition.rs index 166c3c3aed..2b7baeb1ca 100644 --- a/leptos/src/transition.rs +++ b/leptos/src/transition.rs @@ -130,7 +130,8 @@ pub fn Transition( } if is_first_run(first_run, &suspense_context) { let has_local_only = suspense_context.has_local_only() - || cfg!(feature = "csr"); + || cfg!(feature = "csr") + || !HydrationCtx::is_hydrating(); if (!has_local_only || child_runs.get() > 0) && !cfg!(feature = "csr") {