()
| 12 | } |
| 13 | |
| 14 | export default function Prefetch() { |
| 15 | return ( |
| 16 | <main> |
| 17 | <Title>Solid Query - Prefetch</Title> |
| 18 | |
| 19 | <h1>Solid Query - Prefetch Example</h1> |
| 20 | |
| 21 | <div class="description"> |
| 22 | <p> |
| 23 | SolidStart now supports link prefetching. This means that when a user |
| 24 | hovers over a link, the browser can prefetch the data for that page |
| 25 | before the user even clicks on the link. This can make navigating |
| 26 | around your app feel much faster. |
| 27 | </p> |
| 28 | <p> |
| 29 | To see this in action, go to the home page and reload the page. Then |
| 30 | hover over the "Prefetch" link in the navigation. You should see the |
| 31 | user data prefetch in the background and in the devtools. When you |
| 32 | click on the link, the page should load instantly. |
| 33 | </p> |
| 34 | </div> |
| 35 | |
| 36 | <UserInfo sleep={500} /> |
| 37 | </main> |
| 38 | ) |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected