Created
August 23, 2017 18:06
-
-
Save tgrecojs/64baa5bf4fdc4bc247bcded064fee260 to your computer and use it in GitHub Desktop.
example of prefetching next.js route via <Link />
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Will NOT prefetch route | |
<Link href="/blog" /> | |
// Will have response cached and ready to go :) | |
<Link prefetch href="/blog" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment