0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

25 commits

Author SHA1 Message Date
Wonsuk Choi
e90c0bdb83
chore(integrations): remove the unused legacy '.eslintrc.cjs' configs (#12040)
* chore(integrations): remove the unused legacy '.eslintrc.cjs' configs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-17 02:21:55 +09:00
Lachlan Collins
57f40eb05b
chore(deps): update non-major dependencies (#11625)
* chore(deps): update non-major dependencies

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-25 15:15:46 +10:00
Manan Telrandhe
6613753cbe
docs(examples): use webpack in Next.js examples for StackBlitz compatibility (#11110) 2026-08-17 14:44:53 +02:00
Wonsuk Choi
0bc0a8891f
fix(examples/integrations): replace deprecated 'isServer' with 'environmentManager.isServer()' in the Next.js examples (#10858) 2026-06-02 16:17:46 +09:00
Wonsuk Choi
ed37a87ba9
chore(.gitignore): add 'next-env.d.ts' globally and remove tracked files (#10083) 2026-02-11 09:39:51 +01:00
Dominik Dorfmeister
72d8ac5c59
fix: update react and nextJs (#9944)
* fix: update react and nextJs

and add a nextJs16 integration test

* ci: apply automated fixes

* oops

* Update patch versions for React and TanStack packages

Updated the patch versions for various React and TanStack packages.

* fix: streamline dependencies

* bundle size

* fix lock file

* fix: update react in example

* skip test for now

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-04 10:10:29 +01:00
Lachlan Collins
a242f98b82
Revert "chore(deps): update all non-major dependencies" (#9715)
Revert "chore(deps): update all non-major dependencies (#9712)"

This reverts commit 571bc184fd.
2025-09-30 15:29:40 +10:00
renovate[bot]
571bc184fd
chore(deps): update all non-major dependencies (#9712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 04:32:59 +00:00
Dominik Dorfmeister
21218362d4
chore: nextJs versions (#9103) 2025-05-04 11:23:30 +02:00
Lachlan Collins
713ba3a35d
chore(deps): update packages (#9003)
* chore(deps): update packages

* ci: apply automated fixes

* Remove @types/eslint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-12 11:58:55 +10:00
Lachlan Collins
c4afce47ed
chore: use "moduleResolution": "Bundler" at root level (#9002)
* Change to bunlder at root

* Update Next defaults

* Remove moduleResolution from packages

* Remove from scripts

* Unify moduleResolution

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-12 11:03:59 +10:00
Birk Skyum
aa382e9d50
cleanup devDeps tsup, typescript, @microsoft/api-extractor (#8924) 2025-04-01 16:17:50 +02:00
Dominik Dorfmeister
161f534537
chore: ts 5.8
* chore: ts 5.8

* chore: there are no errors anymore from eslint-plugin-react-hooks

* ci: apply automated fixes

* chore: lock file

* ci: apply automated fixes

* revert: there are no errors anymore from eslint-plugin-react-hooks

* chore: revert angular examples back to ts 5.7.2

as angular doesn't support 5.8 yet

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-04 10:08:58 +01:00
Julius Marminge
6ca0eb776c
fix: no hydration when new promise comes in (#8383)
* add failing repro test

* update assertinos

* add logg

* ehm - maybe fix?

* rm -only

* make example

* upd

* ad debug logs

* more debugging

* push

* maybe???

* rm log

* revert

* fix: ?

* fix: check for pending status again

otherwise, we risk including promises that happen because of background updates (think persistQueryClient)

* fix: clear serverQueryClient between "requests"

otherwise, we are re-using the cache and the query won't be in "pending" state the second time around

* chore: remove logs

* rethrow next build error

* kick off ci again

* add `shouldRedactError` option

* pluralize

* docs

* chore: more memory

* chore: revert more memory

* don't compare statuses if they don't exist

* ci: apply automated fixes

* lint

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-17 13:52:17 +01:00
Jonghyeon Ko
ee628e1f9e
chore(react-query): update devDeps (#8427)
* chore(react-query): update devDeps

* chore: reflect review
2024-12-23 18:30:07 +01:00
Lachlan Collins
5be38721d4
chore: update dependencies (#8464)
* chore: update dependencies

* pnpm dedupe

* ci: apply automated fixes

* fix: downgrade nx to fix graph

* update node

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-22 10:00:54 +11:00
Lachlan Collins
94e2c7752e
chore(deps): use stable @types/react version (#8437) 2024-12-14 18:24:35 +11:00
Dominik Dorfmeister
27ce0b6559
chore: examples to react19 (#8408)
* 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
2024-12-10 16:06:34 +01:00
Dominik Dorfmeister
ef0b7b2c28
chore: typescript 5.7 (#8327)
* chore: typescript 5.7

and run tests against ts 5.0 - 5.7

* chore: make eslint happy

* chore: type import issue

* chore: the type assertion is necessary for ts 5.4 and lower

* fix: write code so that it narrows in all ts versions

* fix: import assertion

* fix: angular examples stay at typescript 5.4

* Add JSON import attribute, update vue-tsc

* angular fixes

* Fix vue-tsc compatibility

---------

Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-11-25 09:45:10 +01:00
Lachlan Collins
c69f302f03
chore(deps): update react 19/next 15 (#8342) 2024-11-24 15:24:35 +11:00
Lachlan Collins
b58da75a69
docs(examples): Modernise Next.js examples (#7706)
* docs(examples): Update react/auto-refetching

* Update infinite-query-with-max-pages, load-more-infinite-scroll

* Upgrade react/nextjs

* More projects

* Update playground

* Update prefetching

* Cleanup deps

* Disable typescript during next build

* Fix eslint plugin

* Final changes
2024-07-10 14:48:50 +10:00
Julius Marminge
8cbe7d5dc1
feat(hydration): dehydrate.serialize and hydrate.deserialize (#7615)
* add transformData to restore resolved prefetches

* add failing test

* fix test

* remove transformPromise

* fix

* rev

* rm log

* fix test

* add another test

* serialize/deserialize

* chore: docs + minor refactor

* indentation

* chore: prettier

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-29 07:10:45 +02:00
Lachlan Collins
15e42ba445
ci: Add tests for TS 4.7, 4.8, 4.9 (#7618)
* ci: Add tests for TS 4.7, 4.8, 4.9

* Capitalise
2024-06-25 21:18:27 +10:00
Julius Marminge
9a030b6408
feat: hydrate.transformPromise (#7538)
* hydrate.deserialize

* rm logs

* test

* commit what i got

* async await is king

* rev

* rev

* rm unused

* make thenable work

* comment usage

* docs

* simplify

* fix docs

* tsx

* Update packages/query-core/src/hydration.ts

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-12 14:32:00 +02:00
Dominik Dorfmeister
721730a6a9
feat: allow to dehydrate and restore promises (#7481)
* feat: allow to dehydrate and restore promises

* fix: retries with initialPromise, but without queryFn

* fix: retries for infinite queries

this could use some reconciliation

* refactor: streamline the way we get the queryFn between Query and InfiniteQuery

* fix: only dehydrate query.promise for pending queries

* feat: allow setting hydration and dehydration defaultOptions on the QueryClient

* test: global defaultOptions for hydrate / dehydrate

* tests: hydration of promises

* feat: next15 integration test

* docs: app directory prefetching example

* docs: global hydrate and dehydrate options

* feat: use streaming

* docs: prefetching

* test: useQuery with initialPromise

* fix: do not leak server errors to the client

* docs: typo

* fix: ignore next in sherif

because we test against multiple versions of next

* test: await promise before clearing client to avoid error

* feat: always respect the `promise` passed to hydrate, even if we already have a cached entry.

* Update docs/framework/react/guides/advanced-ssr.md

Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>

* Update docs/framework/react/guides/advanced-ssr.md

Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>

* chore: remove leftover 'use client'

* oops

* docs: better text

* chore: better error messages

* update note

* chore: fix lock file

---------

Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>
2024-05-27 20:13:24 +02:00