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

5,011 commits

Author SHA1 Message Date
Jbee
69f1eafca0
fix(core): change shouldFetchOptionally condition (#2556) v3.19.5 2021-08-11 22:52:57 +02:00
Dominik Dorfmeister
6bbb3710e5
fix(useQueries): make sure keepPreviousData is respected (#2340) v3.19.4 2021-08-10 11:33:11 +02:00
Dominik Dorfmeister
418c48f611
fix(useQuery): apply placeholderData also to disabled queries (#2541) v3.19.3 2021-08-10 11:00:34 +02:00
Dimitri Reifschneider
b5c15c9636
style(queriesObserver): Renames to prevObserversMap (#2551) 2021-08-09 22:28:01 +02:00
Rene Dellefont
76e314d088
feat (QueryClient): getQueriesData for matching multiple queries (#2513) v3.19.2 2021-08-05 13:45:47 +02:00
Dominik Dorfmeister
9ab60ace21
fix: add overloads to useIsMutating (#2451) 2021-08-05 13:45:28 +02:00
Dorell James
60eb97425f
docs: Fixes axios example for cancelling request (#2504) 2021-07-28 09:08:26 +02:00
Hien Truong
b95b86567d
fix(MutationOptions): improve the type of onMutate (#2494) v3.19.1
set the return type of onMutate as Promise<TContext | undefined> instead of Promise<TContext> | Promise<undefined> to make it work with async functions
2021-07-25 21:08:31 +02:00
Niall
51a226ec1f
docs: Very minor grammar updates. (#2485) 2021-07-23 13:40:27 +02:00
Drew Baumann
d9467ff13f
docs: Update isError to error (#2483) 2021-07-23 13:39:54 +02:00
Peter Lim
3fe2b4af43
docs: fix typo (#2480) 2021-07-23 13:38:13 +02:00
Prateek Surana
4b1e7114ae
test(devtools): Add base tests for react-query devtools (#2433)
* test: Add base setup for devtools tests

Add the basic test for opening and closing devtools

* (test): ✅   Add tests for query states

* ✅   Add test for filtering and opening query details

* ✅   Add sorting tests

* ✅  Add test for sorting order

* 🚨   Fix linter warnings

* ♻️  Code review updates

* 🚨   Fix linter warnings
2021-07-16 19:29:37 +02:00
Dominik Dorfmeister
e6da990703
feat(queryCache): add global onSuccess callback (#2404) v3.19.0 2021-07-16 12:55:54 +02:00
Bruno Castro
475eb4123a
fix: rename asyncStoragePersistor to createAsyncStoragePersistor (#2421) 2021-07-16 10:55:39 +02:00
Mauricio Soares
caf841ae93
docs: Update testing with disabled retries (#2460) 2021-07-16 10:54:35 +02:00
Julio Maniratunga
9a73573639
docs: remove unnecessary apostrophe (#2464) 2021-07-16 10:52:44 +02:00
Tanner Linsley
aafd2ccab2 Update logo.sketch 2021-07-12 09:59:22 -06:00
Paul Fitzgerald
16b7d290c7
docs: Update important-defaults.md (#2413) 2021-06-29 15:48:02 +02:00
Dony Sukardi
e5ba8bb77e
fix: update matchQuery logic to cater for all permutations (#2275) v3.18.1 2021-06-28 13:18:39 +02:00
Dominik Dorfmeister
cf09241fc6
docs: update asyncStoragePersistor docs to match the current api (#2411) 2021-06-28 10:47:40 +02:00
Aung Myint Thein
7a628d6497
feat: asyncStoragePersistor for React Native (#2360) v3.18.0 2021-06-28 09:19:11 +02:00
Joey Colon
ddbd755bf6
Add Uber (#2410) 2021-06-26 20:29:54 -06:00
Dominik Dorfmeister
a7780444bb
fix(useQuery): don't inform observers about CancelledErrors (#2409) v3.17.3 2021-06-26 21:42:28 +02:00
Caleb Williams
12e128bd76
docs: update query function usage examples (#2394) 2021-06-25 19:42:23 +02:00
Paul Fitzgerald
8c1bb1f434
docs: Update comparison.md (#2407) 2021-06-25 14:02:20 +02:00
Ian VanSchooten
9aed040364
fix(devtools): Hide devtools when closed, prevent focus (#2376) v3.17.2 2021-06-17 11:02:28 +02:00
Lucas Mesquita
29559b1a5e
docs: updating rtk-query links in Normalized Caching topic in the docs (#2378) 2021-06-17 10:59:19 +02:00
Luke Morales
772c6c4e12
fix: display devtools only in production (#2382) v3.17.1 2021-06-15 22:09:57 -06:00
Curtis Hughes
be6bfbb1bc
feat: session storage persistor (#2282) v3.17.0
LocalStoragePersistor is now integrated with WebStoragePersistor, which can take any `Storage`
2021-06-11 11:38:54 +02:00
Dotan Simha
98dd91f188
docs: Added graphql-codegen plugin to the docs (#2356) 2021-06-09 08:46:38 +02:00
Robert Jędrzejewski
856b144e35
docs(mutations): Update mutations page side effects section (#2354) 2021-06-08 11:32:23 +02:00
Tunmise Ogunniyi
f00de49fb7
docs: Update paginated-queries.md (#2345) 2021-06-07 07:58:37 +02:00
Lenz Weber
7a1382f00c
docs: Update RTK-Query information in comparison.md (#2348) 2021-06-07 07:57:45 +02:00
Dominik Dorfmeister
a5b2216be6
refactor: use react-state for one-time initialization over instance refs (#2253) 2021-06-05 12:23:00 +02:00
Prateek Surana
ff830db831
fix(devtools): fix devtools crash on rejected promises on refetch (#2344) v3.16.1
Catch the error using noop when refetching the query via devtools

fixes #2014
2021-06-05 10:53:00 +02:00
Dominik Dorfmeister
2b8d2af4d1
chore: turn on noUncheckedIndexedAccess compiler flag (#2341) 2021-06-05 10:51:46 +02:00
Piyush
0de83ae852
docs: Use higher order function (array) in code example (#2342)
* Use higher order function (array) in code example

* Add coalesce operator to prevent `undefined` value
2021-06-05 10:43:39 +02:00
Zac Hayes
976fdb7f69
docs: fix typo/outdated hook reference (#2324)
According to the link below, useQueryCache was replaced by
useQueryClient in react-query 3.

https://react-query.tanstack.com/guides/migrating-to-react-query-3#the-usequerycache-hook-has-been-replaced-by-the-usequeryclient-hook

I update the wording here using the wording in useHydrate.md as a
reference.
2021-05-30 22:53:50 +02:00
Fausto Núñez Alberro
85d14d3a7e
docs: document that setDefaultOptions overwrites previous defaults (#2321) 2021-05-30 14:33:07 +02:00
kangdaehoon
74642a3ff6
docs: add missing dependency in nextjs example (#2289) 2021-05-24 09:56:10 +02:00
Mojtaba Javan
828a5a76ae
docs: change "others" to "other" (#2305) 2021-05-24 09:53:36 +02:00
Leo
8d949e1e6d
docs: update testing (#2287) 2021-05-16 19:25:58 +02:00
Erfan Mirzapour
afc6a57ec3
docs(testing): Update example to v3 (#2265) 2021-05-11 09:46:12 +02:00
Erfan Safari
c1be9bfc75
docs: Fix example (#2254) 2021-05-09 13:26:24 +02:00
Matt Wilkinson
0edc116856
chore: node 16 warning (#2249) v3.16.0 2021-05-07 10:07:29 -06:00
Damian Osipiuk
ab27f7c664
refactor(devtools): move default theme to theme file, fix types (#2213) 2021-05-07 10:06:48 -06:00
Dominik Dorfmeister
09116e54b9
feat(queryClient): add setQueriesData utility (#2204)
* feat(queryClient): add setQueriesData utility

a function which can be used to fuzzily set queryData for multiple queries

* feat(queryClient): add setQueriesData utility

docs

* feat(queryClient): add setQueriesData utility

improve docs

* feat(queryClient): add setQueriesData utility

wrap setQueriesData in notifyManager.batch to avoid unnecessary re-renders
2021-05-07 10:04:03 -06:00
Niek Bosch
c8b3ff2153
fix: do not throw errors while a query is retrying (#2147) v3.15.3 2021-05-07 09:54:47 -06:00
Dominik Dorfmeister
3b2c4088e1
feat(useQuery) transform placeholder data with select (#2108)
* feat(useQuery): run placeholderData through select

* feat(useQuery): run placeholderData through select

add a test for placeholderDataFunction

* feat(useQuery): run placeholderData through select

fix structural sharing, in the options, we might also have the placeholderData function, but on the previous result, we have the correct result from the previous iteration, which we want to keep if possible
2021-05-07 09:52:17 -06:00
Gornyy Vladimir
c932d00322
docs(useQuery): change isFetching default to false (#2071)
* docs(useQuery): change isFetching default to false

* Update docs/src/pages/reference/useQuery.md

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2021-05-07 09:51:26 -06:00