From c5508c4f997ac33074b71c97a14c9427f2a79546 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 18 Feb 2020 14:52:42 -0600 Subject: [PATCH] Update comment --- packages/next/client/link.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/next/client/link.tsx b/packages/next/client/link.tsx index ae938044b51f7..0abf7018cb587 100644 --- a/packages/next/client/link.tsx +++ b/packages/next/client/link.tsx @@ -209,9 +209,10 @@ class Link extends Component { if (!this.p || typeof window === 'undefined') return // Prefetch the JSON page if asked (only in the client) const [href, asPath] = this.getPaths() - // make sure to catch here since we should have an unhandledRejection + // make sure to catch here since we should handle an unhandledRejection // since we're doing this automatically and we don't want to reload the - // page while automatically prefetching for the user + // page while automatically prefetching for the user and this only occurs + // when doing an actual navigation Router.prefetch(href, asPath, options).catch(() => {}) prefetched[href] = true }