Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jan 7, 2020
1 parent 0d2f98a commit dd0b962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/client/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ class Link extends Component<LinkProps> {
prefetch() {
if (!this.p || typeof window === 'undefined') return
// Prefetch the JSON page if asked (only in the client)
Router.prefetch(this.getHref())
const href = this.getHref()
Router.prefetch(href)
prefetched[href] = true
}

render() {
Expand Down

0 comments on commit dd0b962

Please sign in to comment.