Skip to content

Commit a344dca

Browse files
authored
update invalidate docs to cover page endpoints (#4892)
1 parent 7727990 commit a344dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/types/ambient.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ declare module '$app/navigation' {
106106
opts?: { replaceState?: boolean; noscroll?: boolean; keepfocus?: boolean; state?: any }
107107
): Promise<void>;
108108
/**
109-
* 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.
109+
* 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.
110110
* @param dependency The invalidated resource
111111
*/
112112
export function invalidate(dependency: string | ((href: string) => boolean)): Promise<void>;

0 commit comments

Comments
 (0)