From edd129fb46bb726dedd10675d8b8e2c8c521b726 Mon Sep 17 00:00:00 2001 From: Tal Elmishali Date: Fri, 13 Dec 2024 23:07:24 -0500 Subject: [PATCH] Add missing zeros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update cacheFor to 30_000 (30s) 🤦🏻‍♂️ --- packages/core/src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/router.ts b/packages/core/src/router.ts index 2f8cb605d..209639104 100644 --- a/packages/core/src/router.ts +++ b/packages/core/src/router.ts @@ -187,7 +187,7 @@ export class Router { return prefetchedRequests.findInFlight(this.getPrefetchParams(href, options)) } - public prefetch(href: string | URL, options: VisitOptions = {}, { cacheFor = 30 }: PrefetchOptions) { + public prefetch(href: string | URL, options: VisitOptions = {}, { cacheFor = 30_000 }: PrefetchOptions) { if (options.method !== 'get') { throw new Error('Prefetch requests must use the GET method') }