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

5,975 commits

Author SHA1 Message Date
Tanner Linsley
fd02255066 release: v4.29.7 2023-05-14 14:10:31 +00:00
Mateusz Burzyński
3816c9d4d3
fix(perf): optimized perf of listeners removal (#5402) v4.29.7
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-05-14 16:04:41 +02:00
Minh Nguyen
5608a04a5e
docs: deprecate callbacks on useQuery (#5407) 2023-05-13 21:11:43 +02:00
hamzah syed
8d13ad8500
docs: Removed "Experimental" Text for the next.js app dir (#5381)
This pull request removes the experimental text for the next.js app dir from the file. With the release of Next.js 13.4, the next/app directory is now considered stable, so there is no longer a need for this experimental text.
2023-05-09 17:48:45 +02:00
Yornaath
235f3c6794
docs: batching docs (#5385)
* init docs

* include batching docs in config

* move batching docs to community section

* Apply suggestions from code review

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-05-09 08:31:03 +02:00
Manuel Ernst
53813e45e1
docs: fix the react example for infinite queries (#5361)
The example talks about a projects API that returns data in the form of
```
{ data: [...], nextCursor: 3}
```

In the example though the data returned from the API is referred to
as having a `projects` entry.
This commit uses the correct entry from the sample API.

Co-authored-by: Manuel Ernst <manuel.ernst@inovex.de>
2023-05-02 12:45:11 +02:00
Lachlan Collins
f1ac84572e
chore: Validate "exports" field in package.json (#5350)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-05-01 21:42:22 +10:00
Zachary DeRose
5e43e00ede
chore: nx 16 migration (#5354)
* nx 16 migration

* update pnpm lock file
2023-05-01 12:15:58 +02:00
Dominik Dorfmeister
802a288909
docs: deprecate callbacks on useQuery (#5353)
* docs: deprecate callbacks on useQuery

* docs: recommend the eslint plugin on installation page
2023-04-30 19:04:25 +02:00
Nicholas Griffin
2552c4bbf4
docs(a11y): adding titles to the video iframes (#5346)
* fix: a11y - adding titles to the video iframes

* chore: removing quotes

* Update docs/react/videos.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-30 13:12:03 +02:00
Lachlan Collins
7fd50a7c62
docs(svelte-query): Use API wrapper to simplify SSR logic (#5322)
* Use API wrapper to simplify fetch logic

* Fix prettier

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-29 07:04:08 +10:00
Tanner Linsley
c8799df563 release: v4.29.6 2023-04-28 15:08:05 +00:00
Prateek Surana
b97cd50432
fix(devtools): Fix restore loading not working when clicked repeatedly (#5311) v4.29.6
* 🐛 Fix restore loading not working when clicked repeatedly

* ✅ Add test for restore loading

* 🚨 Fix formatting issues

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-28 17:05:45 +02:00
Zachary DeRose
373b5d5db5
chore: Adding DTE to the PR workflow (#5256)
* setting up pr workflow for dte

* fixing yml syntax error

* fixing more pr workflow errors

* fixing more pr workflow errors

* removing coverage upload step from agents

* starting the ci run

* making the test:build cacheable

* setting matrix down to 4 total agents

* rm NX_VERBOSE_LOGGING env var in workflow files

* rm option to skip nx cache

* testing with parallel option of 1

* adding affected base option

* busting cache

* adding root package.json as dep

* adding parallel=2 option and busting cache

* default parallel option and busting cache

* rm debris from cache-busting for time tests

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-28 11:06:38 +02:00
CY Lim
8f468aa1b9
docs: Fix typo on persistQueryClient (#5332) 2023-04-28 09:49:30 +02:00
Tanner Linsley
b369b6c9fd release: v4.29.5 2023-04-24 15:20:38 +00:00
Dylan
dc2af81632
refactor: enhance error undefined message (#5253) v4.29.5
* refactor: enhance error undefined message

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

* chore: fix test:lib undefined message

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: DylanJu <dylan@daangnpay.com>
2023-04-24 17:14:39 +02:00
Eric Kwoka
7cd2d192e6
chore(build): Includes declaration maps (#5231)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-24 13:39:32 +02:00
Lachlan Collins
195772e8f2
chore(svelte-query): Update @sveltejs/package to v2 (#5242) 2023-04-23 12:23:39 +10:00
Tanner Linsley
9d437c2575 release: v4.29.4 2023-04-21 11:26:19 +00:00
Eliya Cohen
058f030f4f
fix(eslint-plugin): ignore queryClient from exhaustive-check (#5291) v4.29.4
* fix(eslint-plugin): ignore queryClient

* Update packages/eslint-plugin-query/src/rules/exhaustive-deps/exhaustive-deps.test.ts

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-21 13:24:03 +02:00
Sung Jeon
3ec6693ba4
docs: Revert "docs(community): add @suspensive/react-query community contribution (#5259)" (#5303)
This reverts commit a9ddb4d0b6.
2023-04-20 16:26:35 +02:00
Jonghyeon Ko
317fe08226
docs(lukemorales-query-key-factory.md): fix code example (#5258) 2023-04-16 16:39:36 +02:00
Luke Morales
b99ae600ef
docs: Update query-key-factory example (#5277) 2023-04-15 22:28:12 +02:00
Jonghyeon Ko
a9ddb4d0b6
docs(community): add @suspensive/react-query community contribution (#5259) 2023-04-15 22:10:07 +02:00
Tanner Linsley
aae2c46552 release: v4.29.3 2023-04-15 18:40:11 +00:00
Matthew Hancock
98be9ec4a6
fix(useQueries): check error boundary before retry to prevent infinite refetch (#5271) v4.29.3
* fix(useQueries): check error boundary before retry to prevent infinite refetch

useQuery correctly handles checks on  error boundary before retry. This work will change useQueries to match behavior.

Fixes #4644

* style: fix formatting

---------

Co-authored-by: Hancock, Matthew <Matthew_Hancock@comcast.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-15 20:36:21 +02:00
Tanner Linsley
a65e7f19df release: v4.29.2 2023-04-15 09:11:12 +00:00
Ahmed Hamed
e66a2850a7
perf(useQueries): optimize excessive invocations of getQueries in useQueries (#5255) v4.29.2
Co-authored-by: aemad01 <ahmedeamd199824@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-15 11:07:22 +02:00
Lachlan Collins
5be2530178
docs(svelte-query): Fix SSR example and update svelte templates (#5243) 2023-04-15 13:40:13 +10:00
Zachary DeRose
5335294c67
chore: removing docs from default inputs (#5212)
* removing docs from default inputs

* fixing caching so touching md files does not invlaidate the cache

* rerun ci

* rerun ci

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-13 09:13:40 +02:00
Tanner Linsley
87300819cf release: v4.29.1 2023-04-10 09:45:56 +00:00
Ahmed Hamed
a317633b37
perf(useQueries): optimize findMatchingObservers fn in queriesObserver for large datasets (#5247) v4.29.1
* perf(useQueries): optimize findMatchingObservers fn in queriesObserver for large datasets

* optimize finding unmatchedObservers in queriesObserver

---------

Co-authored-by: aemad01 <ahmedeamd199824@gmail.com>
2023-04-10 11:39:59 +02:00
Tanner Linsley
8969dc1649 release: v4.29.0 2023-04-03 14:25:51 +00:00
Jaga Santagostino
69aea629f7
feat(react-query-devtools): add button to clear cache (#5186) v4.29.0
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-03 16:23:24 +02:00
Judicael
1c5165e70b
docs: revert docs for QueryCache (#5221) 2023-04-02 19:46:25 +02:00
Eliya Cohen
88f144c273
test(eslint-plugin): add test (#5218)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-02 11:29:54 +02:00
Tanner Linsley
5c3943ef4d release: v4.28.1 2023-04-02 08:12:33 +00:00
Eliya Cohen
af086e05f3
fix(eslint-plugin): ignore nodes outside of scope (#5217) v4.28.1
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-02 10:04:43 +02:00
Dominik Dorfmeister
86150d6d1b chore: fix test:react:17 in CI 2023-04-02 10:01:44 +02:00
Zachary DeRose
55bdf7794b
chore: switching to an affected strategy (#5215)
* switiching to an affected strategy

* updating base affected option for ci and ci-v3 workflows

* Update .github/workflows/ci-v3.yml

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

* checking github context

* checking pnpm version

* fix?

* does not like main - let's use a sha then

* checking git head

* checking git in general

* fix????

* fix???????? pleeeease

* still in detatched head state

* try checking out the pr head sha?

* checking out pr branch

* checking githubref

* full gh ref

* dumping context again

* try to checkout head ref

* adding repo prop

* git logging

* trying with sha for base

* fixing other jobs

* fixing other jobs again

* reverting root specific projects to run many

* removing special stuff from build test

* testing affected

* reverting change

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-02 09:14:26 +02:00
Zachary DeRose
dbf452e99b
chore: adding nx cloud access token to ci workflow files (#5213) 2023-04-01 10:50:07 +02:00
Zachary DeRose
2bab18520d
chore: adding the nx-cloud task-runner (#5143)
* adding the nx-cloud task-runner

* empty commit to trigger ci with warm cache

* retrying after adding workspace to TanStack organization

* another empty commit...

* another empty commit...

* this is why I should never use the in-browser conflict resolver...

* another empty commit...

* another empty commit...

* Update packages/query-core/src/tests/hydration.test.tsx

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

* rm console.log left in query core

* empty commit to trigger re-build

* updating nx cloud dependency

* empty commit to attempt to recreate unexpected cache miss

* gather hash data to check

* empty commit

* invalidating cache again

* removing old key and adding read-only key to source control

* empty commit

* updating build task

* adding rollup to cacheable operations

* fixing the project json file with better globs

* removing test:format and test:build as cacheable operations

* updating package scripts for better terminal logging

* removing comment left in

* bumping to latest cloud runner version

* updating pnpm-lock.yaml file

* adding skip-nx-cache to publish script

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-01 08:55:31 +02:00
Mitchell Bösecke
9e92e5ecd3
docs: Update useQueries.md (#5180)
* Update useQueries.md

Specifying that the return value is ordered, to help users understand how to match up the results with their inputs:

https://stackoverflow.com/questions/72045306/usequeries-how-to-get-response-for-a-certain-query

* Elaborated on how the order of the useQueries return value matches the input order
2023-04-01 08:40:05 +02:00
Samuel Kinuthia
9759fee0b8
docs: Update paginated-queries.md (#5191) 2023-04-01 08:37:24 +02:00
Tanner Linsley
dec9ed34da release: v4.28.0 2023-03-20 08:34:37 +00:00
Fredrik Höglund
017867eff4
feat(react-query): preserve 'use client' directives (#5161) v4.28.0
* chore: preserve 'use client' directive in unbundled builds

* fix(react-query): add 'use client' to files missing it

* chore: lock version for rollup-plugin-preserve-directives
2023-03-20 09:27:26 +01:00
Tanner Linsley
fe0ae802d8 release: v4.27.1 2023-03-17 16:50:51 +00:00
Nicholas Firth-McCoy
d23d8934ce
fix(query-sync-storage-persister): Relax undefined check against storage to handle null values (#5095) v4.27.1
* fix: Relax undefined check against storage to handle null values

Fixes #4957.

On Android WebView if `setDomStorageEnabled` is not configured,
`window.localStorage` will be `null` (rather than `undefined`).

Relax the existing conditional to check if `storage` is present to
handle both `null` and `undefined` values to remove a gotcha here.

* docs: update storage type

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-17 17:45:48 +01:00
Zachary DeRose
73e21ce7c3
chore: Add retries to cover flakiness in tests (#5140)
* adding in retries to cover flakiness in tests

* fixing workflow error

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-17 16:59:10 +01:00