fix: <Transition/> fallback on non-initial page loads

This commit is contained in:
Greg Johnston 2023-08-25 15:59:47 -04:00
parent bef4d0dd3b
commit b8098e7992

View file

@ -130,10 +130,7 @@ where
if is_first_run(&first_run, &suspense_context) {
let has_local_only = suspense_context.has_local_only()
|| cfg!(feature = "csr");
if (!has_local_only || child_runs.get() > 0)
&& (cfg!(feature = "csr")
|| HydrationCtx::is_hydrating())
{
if (!has_local_only || child_runs.get() > 0) {
first_run.set(false);
}
}