allcontributors[bot]
f7a496fa9d
add Mamoanwar97 as a contributor for code ( #4707 )
...
* update README.md [skip ci]
* update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-12-25 19:30:52 +01:00
Tanner Linsley
499d911771
release: v4.20.7
2022-12-25 18:05:05 +00:00
Eliya Cohen
1d7ef5a165
fix(eslint-plugin): allow query key factory style ( #4704 )
...
v4.20.7
* allow query key factory style
* fix conflict
2022-12-25 16:29:26 +01:00
Tanner Linsley
3c91dbdf3b
release: v4.20.6
2022-12-25 12:32:36 +00:00
Eliya Cohen
2e80cf7413
fix(eslint-plugin-query): prefer object syntax should not remove generics ( #4703 )
v4.20.6
2022-12-25 13:28:51 +01:00
Johannes Przymusinski
454482c4d1
docs(vue-query): add example for dependent queries ( #4330 )
...
* docs(examples/vue): add example for dependent queries
* docs(examples/vue): don't unwrap authorId in queryKey
* docs(examples/vue): run pnpm i
* chore: apply code formatting
2022-12-23 10:08:18 +01:00
James
32b04d2ef8
docs(vue-query): fix import path in vue installation docs ( #4665 )
...
* Fix VueQueryPlugin import path
* update second import
2022-12-21 10:02:12 +01:00
Damian Osipiuk
3cfd00c27a
docs: vue docs with refs and replacements of react docs ( #4656 )
2022-12-19 11:14:43 +01:00
xiaoyao
83a6d1b13b
docs: Update Overview.md ( #4657 )
...
update overview demo code
2022-12-18 13:14:11 +01:00
Damian Osipiuk
198017b75d
docs: align routing with framework switcher ( #4608 )
...
* docs: align routing with framework switcher
Co-authored-by: Aryan Deora <adeora@iu.edu>
* docs: remove angular from docs config
* docs: add doc ref redirect example
Co-authored-by: Aryan Deora <adeora@iu.edu>
2022-12-16 10:25:43 +01:00
Tanner Linsley
2e331bfc7a
release: v4.20.5
2022-12-15 22:58:34 +00:00
Alex Kozack
e97c6bce68
refactor(vue-query): replace isRef with unref where possible ( #4641 )
v4.20.5
2022-12-15 23:54:46 +01:00
zognotadog
194a2db83c
docs: update updates-from-mutation-responses.md ( #4648 )
...
Missing bracket
2022-12-15 19:24:45 +01:00
Tanner Linsley
4abce31572
release: v4.20.4
2022-12-14 19:01:15 +00:00
Aadesh Chandra
b82f05e302
refactor: disallow implicit returns ( #4640 )
...
v4.20.4
close TanStack/query/issues/4607
2022-12-14 19:56:06 +01:00
Tanner Linsley
4f9557170d
release: v4.20.3
2022-12-14 17:39:38 +00:00
Dominik Dorfmeister
ce1259c720
fix(query-async-storage-persister): support wider range of types ( #4639 )
...
v4.20.3
* fix(query-async-storage-persister): support wider range of types
interfaces like localforage return a Promise<T> from setItem; we don't really care, as long as it's a Promise
* chore: stabilize test
set a staleTime so that we don't get an additional fetch after the component re-mounts
2022-12-14 14:58:46 +01:00
Tanner Linsley
443b5a8918
release: v4.20.2
2022-12-14 07:32:25 +00:00
Aryan Deora
2e4ca01376
refactor(solid-query): vite-plugin-solid backwards compatibility
...
v4.20.2
RELEASE_ALL
2022-12-14 08:27:11 +01:00
Dominik Dorfmeister
22fbdaf696
chore: stabilize tests
2022-12-14 08:17:10 +01:00
Tanner Linsley
d5501ad017
release: v4.20.1
2022-12-14 07:14:19 +00:00
Eliya Cohen
d261823cc1
fix(eslint-plugin): support rule prefer-object-syntax with multi lines ( #4637 )
...
v4.20.1
* fix rule prefer-object-syntax with multilines
* simplify
2022-12-14 08:10:28 +01:00
Tanner Linsley
3c9df2028c
release: v4.20.0
2022-12-13 19:35:29 +00:00
Damian Osipiuk
57ecd32776
feat(vue-query): allow to pass queryClient directly in useQueries options ( #4625 )
...
v4.20.0
* feat(vue-query): allow to pass queryClient directly in useQueries options
* chore: fix formatting
* fix: remove deprecation message in production
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-12-13 20:30:56 +01:00
Dimitri Mitropoulos
d7275d14f3
chore: remove leftover lerna config ( #4632 )
2022-12-13 20:05:22 +01:00
Ronald Rey
d2e9d3ea3b
docs(query-cancellation): remove more references to old cancel fn ( #4631 )
...
Apparently these were missed in a1050eb0d7 .
It is confusing because the [Migration to v4 guide](https://tanstack.com/query/v4/docs/guides/migrating-to-react-query-4#the-cancel-method-on-promises-is-no-longer-supported )
states that the `cancel` property in promises is no longer supported, but the docs for Query Cancellation seem to imply that it is.
I assume that it is not supported anymore based on the commit linked above, the migration guide and my own testing.
If that is indeed the case, let's clean this up.
2022-12-13 20:04:34 +01:00
Dominik Dorfmeister
2a370abc8c
docs(examples): prefer object syntax for examples ( #4621 )
...
* docs: make useQuery use the object syntax
* docs(examples): useTransition doesn't have a timeout option anymore
* docs(examples): prefer object syntax for queryClient methods
* docs(examples): prefer object syntax for solid examples
* docs(examples): prefer object syntax for vue examples
* docs(examples): prefer object syntax for mutation examples
2022-12-11 11:54:49 +01:00
Tanner Linsley
9b21609350
release: v4.19.1
2022-12-03 13:53:23 +00:00
Dominik Dorfmeister
6df7b6f971
fix(query-core): revert isServer check to check for window ( #4592 )
...
v4.19.1
because document is not defined in react-native
additionally, we can check for `Deno` being available on the window to support the Deno runtime
2022-12-03 14:49:10 +01:00
jmlee2k
5ebc68a1d3
docs(useQuery): remove reference to setQueryData from onSuccess doc ( #4585 )
...
onSuccess ISN'T called after setQueryData since
PR #2969
2022-12-02 15:53:56 +01:00
Tanner Linsley
24ac9f9e00
release: v4.19.0
2022-12-01 20:18:31 +00:00
Gaurav Singh
34e0ad239b
feat(query-core): improve environment check to support more server runtimes ( #4578 )
v4.19.0
2022-12-01 21:13:33 +01:00
Wojciech Słodziak
23bd5640c3
docs(examples/react): fix prefetch pagination logic when trying to quickly get to the last page ( #4564 )
...
* bugfix/pagination-example-fetch-next-page: fix basing decision whether next page should be refetched on information from two pages prior
In the useQuery call we set "keepPreviousData", so we must make sure that for fetching the next page we don't base our logic on the data from potentially two pages away.
If user would click very fast to get to the last page we would potentially load eleventh page and that could result in an error depending on the backend implementation.
* bugfix/pagination-example-fetch-next-page: update useEffect dependency array to reflect all used variables
2022-11-30 19:42:19 +01:00
Pierre-Luc Paquin
16000b8db0
docs: Adds Using Remix to SSR guide. ( #4566 )
2022-11-29 21:30:17 +01:00
Allan López
f364fbbf49
docs(useInfiniteQuery): add isRefetching to returned properties docs ( #4567 )
2022-11-29 21:13:57 +01:00
Michal Tecza
e5786715c6
docs: fix the example for queryClient.ensureQueryData ( #4572 )
2022-11-29 20:29:39 +01:00
Tanner Linsley
a1d65df46b
release: v4.18.1
2022-11-28 09:02:05 +00:00
henribru
f6d92a7a7f
fix(vue-query): use distributive omit to preserve union ( #4562 )
v4.18.1
2022-11-28 09:54:44 +01:00
Kevin Van Cott
70fd5bb463
chore(react-query-devtools): upgrade match-sorter-utils ( #4561 )
...
* Upgrade match-sorter-utils in react-query-devtools
match-sorter-utils should no longer have the bad transpilation problem anymore.
* run install
2022-11-28 08:02:57 +01:00
Tanner Linsley
43a5bac737
release: v4.18.0
2022-11-26 16:38:30 +00:00
Michal Tecza
1e0745a6cc
feat: queryClient.ensureQueryData ( #4544 )
...
v4.18.0
* feat: queryClient.ensureQueryData
* style: apply prettier
* refactor: make interface of `queryClient.ensureQueryData` similar to `queryClient.fetchData`
* docs: update docs of `ensureQueryData`
* style: apply prettier formatting
* docs: adjust options description
* refactor: improve types of ensureQueryData overloads
* Update packages/query-core/src/queryClient.ts
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-11-26 17:33:23 +01:00
henribru
e60e38ae0b
docs: update some things referring to old react-query ( #4557 )
...
* docs: update some things referring to old react-query
* Update overview of other TanStack libraries
* Use query-core for downloads badge
2022-11-26 16:51:05 +01:00
Zakuru San
f7008433ae
docs(comparison): Apollo Client V3 Reactive Variables ( #4528 )
...
https://www.apollographql.com/docs/react/local-state/reactive-variables/
In the V3 of Apollo client is it mention that all type of syntax are supported not only GQL thanks to Reactive Variable feature
2022-11-26 11:15:47 +01:00
Michal Tecza
6b9549f07c
docs: fix docs for queryClient.getQueryData ( #4545 )
2022-11-26 09:53:50 +01:00
Damian Osipiuk
11f08c37d5
chore: fix prettier script, format examples ( #4534 )
2022-11-26 07:37:16 +01:00
Tanner Linsley
65841a6ec0
release: v4.17.1
2022-11-26 00:12:29 +00:00
Aleksandr Semenov
379297a74b
fix(vue-query): export proper useQuery return type ( #4513 )
...
v4.17.1
* fix(vue-query): export useQuery return type
* fix(vue-query): export useInfiniteQuery return type
* fix(vue-query): re-export UseQueryDefinedReturnType
Co-authored-by: Aleksandr Semenov <juvs@ecwid.com>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2022-11-26 01:03:12 +01:00
Gustavo Lima
1e998d34b0
docs: fix typo in parallel-queries.md ( #4529 )
2022-11-21 22:25:04 +01:00
Michal Tecza
b79f45806c
test: stabilize some useQuery and useInfiniteQuery tests ( #4526 )
...
* test: stabilize the test for overriding the cursor in the fetchNextPage callback
* test: stabilize the test for error when a selector throws
* style: apply formatting
* test: stabilize the test for variables in a query function
2022-11-20 15:55:14 +01:00
Michal Tecza
d37594a99a
test: stabilize useQuery tests ( #4525 )
...
* test: stabilize the test for onSettled callback
* test: stabilize the test re-renders when tracking but not using props
* test: stabilize the test for onSuccess callback on disabled query
* test: stabilize the test for online/offline scenario
2022-11-19 19:01:40 +01:00