Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 12, 2024
1 parent ed43263 commit 88f646f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/renderer-react/src/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ export const LinkWithPrefetch = React.forwardRef(
forwardedRef,
) => {
const { prefetch: prefetchProp, ...linkProps } = props;
const { defaultPrefetch, defaultPrefetchTimeout } =
typeof window !== 'undefined'
? // @ts-ignore
window.__umi_route_prefetch__
: { defaultPrefetch: 'none', defaultPrefetchTimeout: 50 };
const { defaultPrefetch, defaultPrefetchTimeout } = (typeof window !==
'undefined' && // @ts-ignore
window.__umi_route_prefetch__) || {
defaultPrefetch: 'none',
defaultPrefetchTimeout: 50,
};

const prefetch =
(prefetchProp === true
Expand Down

0 comments on commit 88f646f

Please sign in to comment.