fix: don't prefetch as links enter viewport

This commit is contained in:
iCrawl
2022-08-26 12:00:25 +02:00
parent 13baf75cae
commit 682e0e1802
9 changed files with 19 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ export function HyperlinkedText({ tokens }: { tokens: TokenDocumentation[] }) {
{tokens.map((token, idx) => {
if (token.path) {
return (
<Link key={idx} href={token.path} passHref>
<Link key={idx} href={token.path} passHref prefetch={false}>
<Anchor component="a" inherit>
{token.text}
</Anchor>