Skip to content

Commit b6ed43d

Browse files
committed
Remove old shouldRevalidate overwrite approach
1 parent 1dbf8e3 commit b6ed43d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/react-router/lib/dom/ssr/routes.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -604,14 +604,6 @@ function getShouldRevalidateFunction(
604604
}
605605
}
606606

607-
// Single fetch revalidates by default, so override the RR default value which
608-
// matches the multi-fetch behavior with `true`
609-
if (ssr && route.shouldRevalidate) {
610-
let fn = route.shouldRevalidate;
611-
return (opts: ShouldRevalidateFunctionArgs) =>
612-
fn({ ...opts, defaultShouldRevalidate: true });
613-
}
614-
615607
return route.shouldRevalidate;
616608
}
617609

0 commit comments

Comments
 (0)