0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
Commit graph

5,266 commits

Author SHA1 Message Date
Zachary DeRose
19a8e98bfe
chore: test:lib task-caching w/ Nx (#5116)
* adding quick caching test

* reverting workflow change

* updating pr yml to test nx speed

* fixing yml on property

* fixing yml on property

* fixing target name

* upping to running4 in parallel

* upping to running 5 in parallel

* upping to running 6 in parallel

* upping to running 7 in parallel

* upping to running 8 in parallel

* upping to running 9 in parallel

* upping to running 10 in parallel

* opting for --parallel=5

* cleaning up nx.json

* revert touching of ci.yml file

* reverting on property of pr.yml file

* updating root pacakge.json test:lib command

* fixing frozen lockfile error in ci

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-14 09:03:20 +01:00
Leon Fong
b8b0562349
docs(queries): rename success (#5110) 2023-03-11 09:56:08 +01:00
Damian Osipiuk
b974268bf2
docs: add adapter dropdown to issue template (#5108) 2023-03-10 16:22:14 +01:00
Tanner Linsley
aa2f94420f release: v4.26.2 2023-03-06 20:35:30 +00:00
Eliya Cohen
df512e5393
fix(eslint-plugin): improve object property checks (#5079) v4.26.2
* fix(eslint-plugin): improve object property checks

* prettier
2023-03-06 21:30:48 +01:00
Tanner Linsley
d86e3437f6 release: v4.26.1 2023-03-06 15:02:02 +00:00
Dominik Dorfmeister
aac9488944
fix(core): make sure mutations get updated options (#5085) v4.26.1
this fixes an issue around stale closures where callbacks are not updated, thus are called with wrong values in the closure
2023-03-06 15:56:49 +01:00
Tanner Linsley
a81da97890 release: v4.26.0 2023-03-05 07:17:31 +00:00
Dominik Dorfmeister
8d235134ab
feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache (#5075) v4.26.0
* feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache

* test: tests for query onSettled callback

* test: tests for mutation onSettled callback

* docs: onSettled callbacks
2023-03-05 08:12:34 +01:00
Tanner Linsley
5df1198001 release: v4.25.0 2023-03-05 06:33:45 +00:00
remolueoend
1c2c132575
feat(core): re-export matchQuery from utils (#5070) v4.25.0
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-05 07:28:41 +01:00
Tanner Linsley
ab7eb18d15 release: v4.24.14 2023-03-04 07:38:49 +00:00
Youssouf Oumar
c2b480a223
fix(react-query-devtools): add 'use client' directive to disable SSR (#5041) v4.24.14
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-04 08:34:03 +01:00
Tanner Linsley
6c334e8bb7 release: v4.24.13 2023-03-03 19:43:33 +00:00
janinegygax
517202ce37
fix(react-query-devtools): do not stretch query status label (#5063) v4.24.13
Do not stretch query status label (fresh, fetching, paused, stale, inactive) shown on Query Details view.
2023-03-03 20:37:01 +01:00
Tanner Linsley
ce4de31c62 release: v4.24.12 2023-02-27 11:10:13 +00:00
Abhijeet Singh
63219f3158
docs: update link for v2 docs (#5044) v4.24.12
* docs: update link for v2 docs

* Update README.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-02-27 12:05:27 +01:00
Dominik Dorfmeister
1ec2c14391
chore: extract package validation to an extra script (#5039)
* chore: extract package validation to an extra script

and run it during CI

* chore: add missing `build:types` script to solid-query
2023-02-26 17:37:04 +01:00
Dominik Dorfmeister
c807d91fe5 chore: releases should run on alpha/beta as well 2023-02-26 11:07:22 +01:00
Emmanouil Zoumpoulakis
86e8413196
fix(react-query-devtools): do not hide sort options when filter is used (#5038)
Sort options (asc / desc, and sort function) were hidden when filter was set.
Sort options are now shown along with the filter, even when a filter is set.

Closes #4989
2023-02-26 09:14:08 +01:00
Anup Mantri
9434a162dc
docs: Fix typo (#5029)
wholistic -> holistic
2023-02-24 07:19:24 +01:00
Tanner Linsley
8b51e8b690 release: v4.24.11 2023-02-23 06:03:04 +00:00
Eliya Cohen
5b92682b8b
fix(eslint-plugin): handle new & as const (#5025) v4.24.11 2023-02-23 06:58:19 +01:00
Tanner Linsley
17816d6eed release: v4.24.10 2023-02-21 23:54:44 +00:00
Damian Osipiuk
5b59446b8c
fix(vue-query): prevent memory leak in server environment (#5015) v4.24.10 2023-02-22 00:49:43 +01:00
Johan Magnusson
734f1b39b6
docs: Update overview.md (#5011)
Remove unnecessary word _doing_
2023-02-21 08:55:23 +01:00
Víctor Fernández de Alba
f819674a69
Revert "docs(react): Fix SSR custom framework guide - should be deconstructed (#4998)" (#5002)
This reverts commit aa94a946c2.
2023-02-19 06:52:18 +01:00
Eng Zer Jun
e5a7cf805f
docs: fix invalid React Router comparison link (#5000)
At the time of making this commit, React Router still does not have an
offical comparison page in their docs.

Reference: https://reactrouter.com/en/6.8.1

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-02-18 21:52:48 +01:00
Prateek Surana
8e7a316c11
Set fetchStatus to idle when dehydrating (#4974)
* 🐛 Set fetchStatus to idle when dehydrating

* ✅ Add a test case for ensuring fetchStatus is idle

* ✅ Update tests

* 🚨 Fix lint warnings

* ✅ Update fetchStatus when hydrating

* :okay_hand: Review updates

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-02-18 12:23:57 +01:00
Tanner Linsley
f14590b88b release: v4.24.9 2023-02-18 11:10:50 +00:00
Maciej Janawa
b32da31e38
perf(persist): subscriber calls persistQueryClientStore only on cache-related events (#4884) v4.24.9
* perf(persist): subscriber calls persistQueryClientStore only on cache related events

* refactor(persist): extract NotifyEvent type shared between query and mutation cache

* refactor(persist): move cacheableEventTypes declaration outside the function

* test(persist): add test checking `persistClient` calls frequency

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-02-18 12:05:41 +01:00
Víctor Fernández de Alba
aa94a946c2
docs(react): Fix SSR custom framework guide - should be deconstructed (#4998) 2023-02-18 11:50:48 +01:00
Tanner Linsley
4bdddf45fa release: v4.24.8 2023-02-14 20:41:30 +00:00
Eliya Cohen
da9620f1ba
fix(eslint-plugin-query): autofix for useMutation with options (#4986) v4.24.8
* fix autofix on usemutation with options

* format
2023-02-14 21:36:44 +01:00
Arnaud
1a38d17710
examples(react): Algolia search example (#4971)
* docs: example: algolia

* fix: remove empty line if desc is null

* fix: stale time value

* refactor: use vite and examples structure

* fix: remove deprecated doc files

* docs: add algolia example in the config.json
2023-02-12 21:37:17 +01:00
Tanner Linsley
21439e6ba9 release: v4.24.7 2023-02-12 09:29:38 +00:00
Eliya Cohen
48e806b89b
fix(eslint-plugin-query): mutation function is turned into mutation key (#4973) v4.24.7 2023-02-12 10:25:00 +01:00
Tanner Linsley
5a5fd6baef release: v4.24.6 2023-02-12 09:03:58 +00:00
Dominik Dorfmeister
1ef2958113
fix(core): make sure pausedMutations always execute in serial (#4906) v4.24.6
* fix: make sure pausedMutations always execute in serial

when resumePausedMutations is called multiple times, we are starting the second paused mutation even though the first one has not yet finished. This can happen when a focus event and an online event happen in short succession

* fix: always return the same Promise when resumePausedMutations is called

* fix: make sure every call to resumePausedMutations is evaluated

mutation.continue() needs to immediately resolve back if we didn't really continue so that consecutive calls to resumePausedMutations can be appended to the promise chain

* fix: types
2023-02-12 09:57:42 +01:00
Damian Osipiuk
02852dd6b3
chore: fix ci warnings (#4940) 2023-02-11 00:03:28 +01:00
寻
6a8471cf51
docs: typo fix (#4917) 2023-02-10 23:03:23 +01:00
Tanner Linsley
512d059a03
Update overview.md 2023-02-04 13:51:23 -07:00
Tanner Linsley
2b0caebc80 release: v4.24.5 2023-02-03 17:53:59 +00:00
Eliya Cohen
edeb96c088
fix(eslint-plugin-query): don't remove options passed as variable (#4932) v4.24.5 2023-02-03 18:48:26 +01:00
Michał Jung
3d83cfc16e
docs(useQuery.md): add missing isInitialLoading as possible return (#4923) 2023-02-02 10:50:49 +01:00
Tanner Linsley
7515e19877 release: v4.24.4 2023-01-30 16:59:42 +00:00
Dominik Dorfmeister
6b5bcbcf39
fix: Revert "fix(core): make sure pausedMutations always execute in serial (#4902)" (#4905) v4.24.4
This reverts commit 8991d7c019.
2023-01-30 17:49:22 +01:00
Tanner Linsley
de45e772f8 release: v4.24.3 2023-01-30 14:48:07 +00:00
Dominik Dorfmeister
8991d7c019
fix(core): make sure pausedMutations always execute in serial (#4902) v4.24.3
* fix: make sure pausedMutations always execute in serial

when resumePausedMutations is called multiple times, we are starting the second paused mutation even though the first one has not yet finished. This can happen when a focus event and an online event happen in short succession

* fix: always return the same Promise when resumePausedMutations is called
2023-01-30 15:42:36 +01:00
Tanner Linsley
65cd5968be release: v4.24.2 2023-01-30 09:53:49 +00:00