* docs(examples): add router and framework suffix to 'docs/config.json' labels and 'package.json' names
* docs(examples): distinguish Next.js App/Pages Router and Nuxt/SolidStart major versions in example labels and names
* docs(examples/svelte): add 'basic-graphql-request', 'default-query-function', 'shadow-dom', 'algolia' and 'chat' examples
* docs(examples/svelte): declare '$props()' with 'let' in the new examples
* docs(examples/svelte/{basic-graphql-request,default-query-function}): prevent the hash navigation on the post links
* docs(examples/preact): add 'auto-refetching', 'pagination', 'load-more-infinite-scroll', 'infinite-query-with-max-pages' and 'prefetching' examples
* docs(examples/preact/auto-refetching): share the mocked list across tabs through 'localStorage'
* docs(lit/guides/testing): add the testing guide with 'QueryClientProvider' and fake timers
* docs(lit/guides/testing): add the imports to the controller and fake timers examples so each can be used as its own file
* docs(svelte/testing): add the testing guide with '$effect.root' and Svelte Testing Library
* docs(svelte/testing): clean up the effect root in 'finally' and add the 'withEffectRoot' helper variant
* docs(svelte/testing): explain that testing a function on its own needs a 'QueryClient' accessor and point to the component approach otherwise
* docs(svelte/testing): share the query with 'queryOptions' instead of a wrapper function that takes a 'QueryClient' accessor
* docs(vue-query): add JSDoc across the package
* docs(vue-query): generate reference docs with TypeDoc
* docs(config): register vue-query TypeDoc reference pages
* docs(vue-query): preserve dehydrate/hydrate option docs and fix reference links
* docs(config): reorder vue-query reference nav to list 'Functions' first
* docs(config): reorder vue-query 'Functions' entries to match react/preact grouping
* docs(vue-query): restore Suspense guide link and 'placeholderData' behavior note lost in TypeDoc migration
* docs(vue-query): correct JSDoc accuracy issues and reactivity bugs
* docs(vue-query): fix invalidateQueries example that invalidated every query, add whole-options getter example
* docs(vue-query): add examples for the mutationOptions and useInfiniteQuery getter overloads
* docs(vue-query): add react-parity examples for select, skipToken, keepPreviousData, optimistic updates, and infinite scroll
* docs(vue-query): add queryOptions select typing example to useQueries
* docs(vue-query): disconnect IntersectionObserver on unmount, drop non-null assertion in skipToken examples
* docs(vue-query): add 'skipToken' factory example to 'queryOptions'
* docs(vue-query): correct 'queryKey' reactive-getter claim in 'useQuery'/'useInfiniteQuery'
* docs(vue-query): correct 'queryKey' reactive-getter claim in 'QueryOptions' type JSDoc
* docs(vue-query): fix reversed claim that 'queryKey' entries can't be reactive getters
docs(preact-query): add Suspense and Testing guides
The Preact docs had no counterpart for the React "Suspense" and
"Testing" guides even though `@tanstack/preact-query` ships the
suspense hooks and `QueryErrorResetBoundary`.
Follow the existing Preact docs convention: reference the React guide
via `ref:` + `replace:` and override only the React-specific sections
(`preact/compat` Suspense, an error boundary built on `useErrorBoundary`,
`@testing-library/preact`). The React guides only gain the section
markers needed for the overrides; their wording is unchanged.
* docs(vue-query,solid-query): inline react reference content instead of 'ref'-ing hand-written react docs
* docs(react-query): generate reference docs with TypeDoc
* docs(vue-query,solid-query): fix dangling suspense-hook links left over from the react content copy
* docs(solid-query): apply solid's callback call form to inlined reference examples
* docs(react-query): correct inaccurate JSDoc statements flagged in review
* docs(vue-query,solid-query): fix reactivity-aware examples and inaccurate type signatures flagged in review
* docs(vue-query,solid-query): fix remaining type/behavior inaccuracies flagged in second review
* docs(react-query): stop implying a default queryFn defers a fetch the way 'enabled: false' does
* docs(vue-query): mark 'mutate'/'mutateAsync' per-call options as optional
* docs(example): dataloader
* use tanstack pacer instead of dataloader
* add staleTime
* switch to useAsyncBatchedCallback
* Revert "switch to useAsyncBatchedCallback"
This reverts commit 4d408daa63.
* fix: use PromiseWithResolvers
* add batching example to docs
* 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 <noreply@anthropic.com>
* 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 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat lit-query: add initial lit-query package
* remove internal docs from initial PR
* fix review issues
* align scripts with monorepo Nx targets and use workspace:* for query-core
* feat(lit-query): fix type inference and monorepo integration
- Fix createQueriesController tuple type inference with recursive types
- Add DataTag support to queryOptions
- Fix build config and vitest custom-condition resolution
- Fix example install scripts for standalone bootstrap
* fix(lit-query): polish package validation and examples
* ci: apply automated fixes
* lit-query: preserve provider handshake ordering in BaseController
* Update .changeset/lemon-memes-divide.md
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
* removing prettier config from adapter, so that global config from the monorepo is used
* removed the package local format scripts so formatting stays centralized at the monorepo root
* removing like other adapters keep build and test:build as separate targets
* Compared against the other adapters and removed the lit-query-only aliases/gates, keeping the standard Nx target names so root CI can pick them up consistently
* package:check has been removed. The CJS smoke check is still needed because lit-query publishes custom CJS output/types
* fix(lit-query): align lit examples and integration with monorepo conventions
* chore(lit-query): clean up stale package checks
* fix(lit-query): address review feedback for lit examples and lifecycle tests
* chore: fix lockfile
* fix: add customCondition
* docs(lit-query): add Lit docs and generated reference
* docs(lit-query): fix Lit docs review comment and align examples
---------
Co-authored-by: gauravchugh <gauravchugh@servicenow.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat(vue-query): add 'mutationOptions'
* ci: apply automated fixes
* chore(.changeset): add changeset for 'mutationOptions' in vue-query
* feat(vue-query/mutationOptions): add getter support and fix test descriptions to match actual behavior
* refactor(vue-query): rename 'VueMutationOptions' to 'MutationOptions'
* docs(vue-query): add 'mutationOptions' reference page
* test(vue-query/mutationOptions): add runtime test for getter without 'mutationKey'
* docs(vue-query): add 'mutationOptions' to config.json navigation
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* docs(react): add polling guide
Adds a dedicated guide for refetchInterval-based polling. The option was
only mentioned in passing in important-defaults.md with no explanation of
how it works, how to adapt it dynamically, or how it interacts with window
focus, networkMode, and the enabled flag.
Covers:
- Basic setup and independence from staleTime
- Dynamic intervals via function form
- refetchIntervalInBackground for dashboards / always-on UIs
- Disabling window-focus refetching for fullscreen game and kiosk UIs
- Pausing polling with the enabled flag
- networkMode: 'always' for unreliable navigator.onLine environments
- Deduplication behavior across multiple observers
Updates config.json to add the guide to the React sidebar between
Window Focus Refetching and Disabling/Pausing Queries.
Adds a cross-reference in important-defaults.md.
* docs(react/polling): add example markers for framework portability
* docs(react): fix deduplication note — timers are per observer, not per query
* docs(react): address review feedback on polling guide
- Remove staleTime enumeration; link to Important Defaults instead
- Remove game/kiosk focus management examples (scope creep)
- Rewrite pausing polling to use refetchInterval function instead of enabled: false
- Fix offline support section: connectivity uses online/offline events, not navigator.onLine
- Fix deduplication note: remove queuing implication and em dash
- Add non-browser environments note pointing to React Native guide
* docs(solid,vue): add polling guide framework ports
* docs: wrap React Native section in markers for framework port exclusion
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>