perf: désactiver le prefetch next/link sur la sidebar des paroles
This commit is contained in:
@@ -20,6 +20,7 @@ export default function MizikLyen({niAwtis, anPawol, kuveti, slug, meteEsMobilOu
|
|||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
passHref
|
passHref
|
||||||
|
prefetch={false}
|
||||||
href={`/paroles/${anPawol.slug}#${anPawol.slug}`}
|
href={`/paroles/${anPawol.slug}#${anPawol.slug}`}
|
||||||
style={{textDecoration: 'none', width: '100%', display: 'flex', alignItems: 'center'}}
|
style={{textDecoration: 'none', width: '100%', display: 'flex', alignItems: 'center'}}
|
||||||
onClick={() => meteEsMobilOuve(false)}
|
onClick={() => meteEsMobilOuve(false)}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export default function TeksDrawer({paroles}) {
|
|||||||
<MenuIcon />
|
<MenuIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
{parole && (
|
{parole && (
|
||||||
<Link passHref href='/paroles'>
|
<Link passHref prefetch={false} href='/paroles'>
|
||||||
<IconButton aria-label='return' size='medium'>
|
<IconButton aria-label='return' size='medium'>
|
||||||
<KeyboardBackspaceIcon style={{fontSize: '1.5em'}} />
|
<KeyboardBackspaceIcon style={{fontSize: '1.5em'}} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user