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
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