File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 1
1
import type { LinksFunction , LoaderFunctionArgs } from "react-router" ;
2
- import { type ShouldRevalidateFunction , Outlet } from "react-router" ;
2
+ import { Outlet } from "react-router" ;
3
3
import classNames from "classnames" ;
4
4
5
5
import docsStylesheet from "~/styles/docs.css?url" ;
@@ -26,22 +26,6 @@ export let loader = async ({ params }: LoaderFunctionArgs) => {
26
26
return { menu, header } ;
27
27
} ;
28
28
29
- export const shouldRevalidate : ShouldRevalidateFunction = ( {
30
- currentParams,
31
- nextParams,
32
- defaultShouldRevalidate,
33
- } ) => {
34
- // If both refs are defined and the same, the docs navigation is the same
35
- if (
36
- currentParams . ref &&
37
- nextParams . ref &&
38
- currentParams . ref === nextParams . ref
39
- ) {
40
- return false ;
41
- }
42
- return defaultShouldRevalidate ;
43
- } ;
44
-
45
29
export default function DocsLayout ( ) {
46
30
return (
47
31
< div className = "[--header-height:theme(spacing.16)] [--nav-width:theme(spacing.72)] lg:m-auto lg:max-w-[90rem]" >
You can’t perform that action at this time.
0 commit comments