From 29b14b8e066b7841ec6333f1a72848483aa71c4b Mon Sep 17 00:00:00 2001 From: VitaliPri Date: Fri, 26 Jun 2026 13:07:21 -0400 Subject: [PATCH 1/2] docs(svelte): replace deprecated isLoading with isPending in overview `isLoading` is a deprecated alias for `isPending && isFetching` and is scheduled for removal in the next major version. The overview example shows a standard (always-enabled) query, so `isPending` is the correct flag. All other framework overview docs (React, Vue, Angular, Lit, Preact) already use `isPending`. Note: `isLoading` is intentionally retained in disabling-queries guides where it is the right flag for disabled/lazy queries. Co-Authored-By: Claude Sonnet 4.6 --- docs/framework/svelte/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/framework/svelte/overview.md b/docs/framework/svelte/overview.md index 8be6de78d34..980718456d1 100644 --- a/docs/framework/svelte/overview.md +++ b/docs/framework/svelte/overview.md @@ -37,7 +37,7 @@ Then call any function (e.g. createQuery) from any component:
- {#if query.isLoading} + {#if query.isPending}

Loading...

{:else if query.isError}

Error: {query.error.message}

From c2053309076a6d34677ec201739067431bea29f6 Mon Sep 17 00:00:00 2001 From: VitaliPri Date: Fri, 26 Jun 2026 13:16:25 -0400 Subject: [PATCH 2/2] docs(preact): add missing polling guide The Polling guide existed for React, Vue, Solid, and Angular but was missing from the Preact docs. Added the ref stub and wired it into the nav config between Window Focus Refetching and Disabling Queries, matching the ordering used by all other frameworks. Co-Authored-By: Claude Sonnet 4.6 --- docs/config.json | 4 ++++ docs/framework/preact/guides/polling.md | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 docs/framework/preact/guides/polling.md diff --git a/docs/config.json b/docs/config.json index 2b1561d691a..a68832565dc 100644 --- a/docs/config.json +++ b/docs/config.json @@ -864,6 +864,10 @@ "label": "Window Focus Refetching", "to": "framework/preact/guides/window-focus-refetching" }, + { + "label": "Polling", + "to": "framework/preact/guides/polling" + }, { "label": "Disabling/Pausing Queries", "to": "framework/preact/guides/disabling-queries" diff --git a/docs/framework/preact/guides/polling.md b/docs/framework/preact/guides/polling.md new file mode 100644 index 00000000000..1421f4c30b1 --- /dev/null +++ b/docs/framework/preact/guides/polling.md @@ -0,0 +1,6 @@ +--- +id: polling +title: Polling +ref: docs/framework/react/guides/polling.md +replace: { '@tanstack/react-query': '@tanstack/preact-query' } +---