Skip to content

Commit

Permalink
fix: <Transition/> fallback should show on if client-rendered (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Dec 22, 2023
1 parent 34fb39c commit b9961db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leptos/src/transition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand Down

0 comments on commit b9961db

Please sign in to comment.