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

5,624 commits

Author SHA1 Message Date
EL AYADI Mohamed
15dceab332
fix(core): Assign observer's current Result when optimistic read occurs (#5573)
* [Fix-5538]: Assign observer's current Result when an optimistic reading occurs

* move the condition outside so would make making decision about v4 and v5 easier & remove fake timers

* Flip test on currentResult with placeholderData's order & add test for placeholderData

* Fix tests using the same queryKey

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-07-14 16:29:37 +02:00
Tanner Linsley
38ef67a3e5 release: v4.29.21 v4.29.21 2023-07-14 13:24:37 +00:00
Yuki Tanaka
38504ace8d
fix(vue-query): show timeline events in the Vue.js devtools (#5712) 2023-07-14 15:22:08 +02:00
Dominik Dorfmeister
58573e9a1c docs: fix typo 2023-07-14 12:19:58 +02:00
Matt Crowder
0f237bcbbd
docs: Update useMutation.md to remove mention of devtools with mutationKey (#5709)
As part of https://tanstack.com/query/v4/docs/react/devtools it mentions that mutations don't appear in the devtools, so we should remove this mention that the mutationKey is used in devtools
2023-07-14 12:10:18 +02:00
Dominik Dorfmeister
c3691691d5 docs: infinite query example
to only keep the first page
2023-07-14 12:09:00 +02:00
Em Zhan
f76783ca71
docs(vue-query): fix some typos in devtools.md (#5706) 2023-07-14 11:46:03 +02:00
Lachlan Collins
b18426da86
chore: Update to Nx 16.5.0 (#5686) 2023-07-06 22:47:24 +02:00
Tanner Linsley
3e2679f2a6 release: v4.29.20 v4.29.20 2023-06-30 22:15:46 +00:00
Alex Liu
634b397130
refactor(vue-query): reduce redundant ref() (#5639)
* refactor(vue-query): reduce redundant `ref()`

* chore: run prettier
2023-07-01 00:13:14 +02:00
Tanner Linsley
9b48048a61 release: v4.29.19 v4.29.19 2023-06-27 13:08:12 +00:00
Mike Lyons
390e47bd3e
fix(types): Add pageParam type to QueryFunction generic types (#5623)
Although QueryFunctionContext allows setting the pageParam type
through generics, QueryFunction uses QueryFunctionContext without
exposing this typing functionality. This forces any queryFn
typed as a QueryFunction to have an `any` pageParam. This change adds
TPageParam to QueryFunction type, which is passed through to
QueryFunctionContext.

This should be backward compatible and only affects typing (not runtime code).

Co-authored-by: Mike Lyons <mike@dropbox.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-06-27 15:02:31 +02:00
Lachlan Collins
ddf698604c
chore: Update eslint config from alpha branch (#5632) 2023-06-27 18:52:03 +10:00
Tanner Linsley
d0388a92dc release: v4.29.18 v4.29.18 2023-06-27 07:06:10 +00:00
Dominik Dorfmeister
1c46228fa2
fix: Revert "refactor(rect-query): prefer client-only import over 'use client' (#5626)" (#5630)
This reverts commit 3e25f51d0e.
2023-06-27 09:04:01 +02:00
Damian Osipiuk
3e82c581da
Revert "fix(vue-query): do not subscribe on server - nuxt2 memory leak fix (#5576)" (#5627)
This reverts commit f16e413a8f.
2023-06-25 17:58:04 +02:00
Tanner Linsley
e1abd07bc0 release: v4.29.17 v4.29.17 2023-06-25 14:34:18 +00:00
GLabat
9077bb9642
refactor(query): add more context to "Missing queryFn" error (#5620)
* refactor(query): add more context to "Missing queryFn" error

* refactor(query): use queryHash in error message for serialisation concern

---------

Co-authored-by: Guillaume Labat <guillaume.labat+git@imagino.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-06-25 16:28:11 +02:00
Tanner Linsley
6dc8d2ef09 release: v4.29.16 v4.29.16 2023-06-25 14:22:00 +00:00
Dominik Dorfmeister
3e25f51d0e
refactor(rect-query): prefer client-only import over 'use client' (#5626)
* refactor(rect-query): prefer client-only import over 'use client'

for things that cannot work on the server, like the QueryClientProvider or the hooks; this will give better error message when attempted to be used in a server component

* chore: update rollup-plugin-preserve-directives to 0.2.0
2023-06-25 16:19:15 +02:00
Tanner Linsley
3643b87c34 release: v4.29.15 v4.29.15 2023-06-20 16:53:57 +00:00
Indrajeet Nikam
c2d07d49c8
refactor(types): export query-cache related types (#5614)
* refactor(types): export query-cache related types

export queryCache related types for better DevX

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

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-06-20 18:48:04 +02:00
CertainlyAria
28a96c772e
docs(useMutation): fix incorrect mutationKey types (#5602) 2023-06-18 18:33:00 +02:00
Rudra Kishore G
ab8dd555da
docs(examples): Update useAppState in react-native example (#5557)
* Update useAppState.ts

Updating the cleanup function as the removeEventLister method is not available on AppState

* Update useAppState.ts

Removed Semicolons

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-06-18 18:32:10 +02:00
Tanner Linsley
accecddd16 release: v4.29.14 v4.29.14 2023-06-16 09:24:23 +00:00
Julian Bovone
74a0322853
fix(types): notifyManager method typedef (#5569)
Co-authored-by: jbovone <bovonejulian@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-06-16 11:18:13 +02:00
Lachlan Collins
df37d35609
chore: Reorder and rename config files (#5579) 2023-06-14 13:04:48 +10:00
Tanner Linsley
61bc58de90 release: v4.29.13 v4.29.13 2023-06-13 21:02:22 +00:00
Damian Osipiuk
f16e413a8f
fix(vue-query): do not subscribe on server - nuxt2 memory leak fix (#5576) 2023-06-13 22:59:21 +02:00
Jonghyeon Ko
18c9f77a4f
docs(@suspensive/react-query): update latest content (#5539) 2023-06-12 10:49:42 +02:00
Lachlan Collins
14c7b1efdd
chore: Merge more workspace changes from alpha (#5564) 2023-06-12 18:26:44 +10:00
Alex Andronache ☕
67ab1bb7c0
docs(react/comparison): update rtk-query refetching support (#5558)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-06-12 10:26:10 +02:00
Yixuan Xu
b699c03dc5
docs: update comparison (#5552) 2023-06-12 10:24:39 +02:00
Lachlan Collins
7226d5064a
chore: Merge select workspace changes from alpha (#5563) 2023-06-12 17:55:04 +10:00
Dominik Dorfmeister
844977966b
docs: Update installation.md 2023-06-12 09:53:55 +02:00
Tanner Linsley
878d85e44c release: v4.29.12 2023-05-29 11:32:59 +00:00
Dominik Dorfmeister
c290906d66
fix(react-query): fix missed updates between creation and subscription (#5474) v4.29.12
* fix: fix missed updates between creation and subscription

* chore: fix persister tests
2023-05-29 13:30:12 +02:00
Tanner Linsley
4a4e62ad0d release: v4.29.11 2023-05-27 08:52:07 +00:00
Eng Zer Jun
5188ae3f95
refactor(query-core): replace indexOf with includes (#5431) v4.29.11
This commit replaces the use of `.indexOf` with `.includes` for cases
where the method is used to check if an array contains a particular
element. This results in improved code readability and better adherence
to modern JavaScript best practices.

The replaced code snippets include:

	- `.indexOf(...) === -1`
	- `.indexOf(...) !== -1`

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-05-27 10:46:14 +02:00
Tanner Linsley
9898413cc1 release: v4.29.10 2023-05-27 08:28:34 +00:00
lijianan
00319a1421
refactor(query-core): optimization window.removeEventListener (#5475) v4.29.10 2023-05-27 10:23:18 +02:00
Lachlan Collins
6c3abf7cec
chore: Update to pnpm v8 (#5476) 2023-05-27 13:54:37 +10:00
Matthew Day
dd5b64a9cf
docs: Update useQuery.md (#5454)
This commit puts keys in alpha order and adds one that was not included previously, `errorUpdateCount`.
2023-05-26 17:07:24 +02:00
Tanner Linsley
2892813326 release: v4.29.9 2023-05-22 19:51:05 +00:00
Eliya Cohen
3c561ba923
fix(eslint-plugin): lookup for any function ancestor (#5448) v4.29.9 2023-05-22 21:48:22 +02:00
Jonghyeon Ko
820258b17d
Revert "docs: Revert "docs(community): add @suspensive/react-query community contribution (#5259)" (#5303)" (#5447)
This reverts commit 3ec6693ba4.
2023-05-22 21:11:29 +02:00
Alex Arro
318b3a5d99
docs: fix indentation in markdown list (#5444) 2023-05-22 13:01:48 +02:00
Tanner Linsley
ae015f1cd6 release: v4.29.8 2023-05-18 16:36:59 +00:00
Eliya Cohen
ddd6e5a758
fix(eslint-plugin): fix component and hook lookup (#5426) v4.29.8 2023-05-18 18:34:08 +02:00
Tanner Linsley
fd02255066 release: v4.29.7 2023-05-14 14:10:31 +00:00