From 6af5a6558ecac29d95d0f312eab36b0d6e3fe0ed Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 12 May 2022 17:16:46 -0400 Subject: [PATCH] update invalidate docs to cover page endpoints --- packages/kit/types/ambient.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kit/types/ambient.d.ts b/packages/kit/types/ambient.d.ts index 99d31d0ffd8d..dc0cd31214b2 100644 --- a/packages/kit/types/ambient.d.ts +++ b/packages/kit/types/ambient.d.ts @@ -102,7 +102,7 @@ declare module '$app/navigation' { opts?: { replaceState?: boolean; noscroll?: boolean; keepfocus?: boolean; state?: any } ): Promise; /** - * Causes any `load` functions belonging to the currently active page to re-run if they `fetch` the resource in question. Returns a `Promise` that resolves when the page is subsequently updated. + * Causes any `load` functions belonging to the currently active page to re-run if they `fetch` the resource in question, or re-fetches data from a page endpoint if the invalidated resource is the page itself. Returns a `Promise` that resolves when the page is subsequently updated. * @param dependency The invalidated resource */ export function invalidate(dependency: string | ((href: string) => boolean)): Promise;