* docs(svelte): fix writable stores tutorial link
Update the Svelte stores tutorial link to the correct URL in the Svelte Query overview documentation.
The previous link to writable-stores was broken or outdated.
* docs(ssr): update Next.js documentation links to latest version
Update outdated Next.js documentation links in the SSR guide to point to
the latest App Router documentation paths, ensuring users are directed to
the most current and relevant documentation.
Links updated:
- rewrites feature
- automatic static optimization
- rewrite parameters
* fix(types): support both `Array` and `ReadonlyArray` for typed query and mutation keys
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* docs(react-query): Add import statement with skipToken to the docs
Makes more obvious how should the skipToken be used
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat(react-query): allow useQuery and useQueries to unsubscribe from the query cache with an option
* test: subscribed
* fix: revert calling getOptimisticResult later
* docs(react): update the react-native.md section (#8506)
* update the doc
* update the doc
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* docs: reference
---------
Co-authored-by: Florian De la comble <f.delacomble@gmail.com>
* fix: eslint-plugin-query not working with vanilla js
* Update packages/eslint-plugin-query/src/utils/detect-react-query-imports.ts
* Disabled linter for conditional statement
This should make it pass the eslint-plugin test
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
* fix(react-query): ensureSuspenseTimers should ALWAYS set staleTime to 1000 when it is below 1000.
* ci: apply automated fixes
* fix(react-query): fix ensureSuspenseTimers logic
* test(react-query): add test code
* test(react-query): delete unnecessary test code
* test(react-query): Refectoring test code to reduce test time
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* Fix issues with queryOptions factory method types
* Apply the same fixes to infiniteQueryOptions
* Revert change to failing test
* Fix test in more userland way
* Unused import
* Add tRPC-style solution
* Unused import
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(query-core): respect initialData for queryClient.ensureQueryData
we used to call `getQueryData` before queryCache.build(), but building is what creates the query and potentially adds initialData. I tried to make that more obvious by reading directly from `query.state.data`
* refactor: simplify condition
* chore: examples to react19
* test: seems like pre-warming adds another render, which is fine
* test: more pre-warming renders (this is fine)
* test: use react-render-stream
* chore: move tests to renderStream
* chore: fix act
* test: fix remaining tests
* test: move away from fireEvent.click
because it uses `act` under the hood, which isn't supported / wanted with renderStreams
* test: useInfiniteQuery to renderStream
* chore: stabilize test