Skip to content

Commit

Permalink
docs: Update routing index.mdx prevent prefetching behavior (#6274)
Browse files Browse the repository at this point in the history
Co-authored-by: PatrickJS <github@patrickjs.com>
  • Loading branch information
Jemsco and PatrickJS committed May 7, 2024
1 parent db32878 commit 35d1435
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ The Link component's `prefetch` prop can be used to improve the perceived perfor
```

By simply adding the `prefetch` prop, your Link component will start prefetching the page as soon as the user hovers over the link. If the application is done prefetching when the user clicks on the link, the following page will appear instantly.
If prefetching is not desired, you can set the prefetch value to false.
```tsx
<Link prefetch={false} href="/about">About</Link>
```

### Scroll Restoration

Expand Down

0 comments on commit 35d1435

Please sign in to comment.