docs: update invalidateAll documentation to mention query functions (#15042)
authorMatt DeKok <matt@dekok.dev>
Mon, 8 Dec 2025 19:16:01 +0000 (13:16 -0600)
committerGitHub <noreply@github.com>
Mon, 8 Dec 2025 19:16:01 +0000 (11:16 -0800)
packages/kit/src/runtime/client/client.js
packages/kit/types/index.d.ts

index f071649309837268e6bc9cd58cb64f3cac1acb01..f8d987693ce2314ca3f592593d93a21eb84f47be 100644 (file)
@@ -2145,7 +2145,7 @@ function push_invalidated(resource) {
 }
 
 /**
- * Causes all `load` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
+ * 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.
  * @returns {Promise<void>}
  */
 export function invalidateAll() {
index b3611645dc44b6e41d4742e29d9055e59ddc069b..8ca87b95f7f53374bfbc1d6f0f195965f39b67b0 100644 (file)
@@ -3035,7 +3035,7 @@ declare module '$app/navigation' {
         * */
        export function invalidate(resource: string | URL | ((url: URL) => boolean)): Promise<void>;
        /**
-        * Causes all `load` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.
+        * 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.
         * */
        export function invalidateAll(): Promise<void>;
        /**