Skip to content

Commit 37619d2

Browse files
authored
docs: update invalidateAll documentation to mention query functions (#15042)
1 parent 966e232 commit 37619d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/kit/src/runtime/client/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,7 @@ function push_invalidated(resource) {
21452145
}
21462146

21472147
/**
2148-
* Causes all `load` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
2148+
* Causes all `load` and `query` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
21492149
* @returns {Promise<void>}
21502150
*/
21512151
export function invalidateAll() {

packages/kit/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@ declare module '$app/navigation' {
30353035
* */
30363036
export function invalidate(resource: string | URL | ((url: URL) => boolean)): Promise<void>;
30373037
/**
3038-
* Causes all `load` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
3038+
* Causes all `load` and `query` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
30393039
* */
30403040
export function invalidateAll(): Promise<void>;
30413041
/**

0 commit comments

Comments
 (0)