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
Tanner Linsley
7c43c94acb v1.0.30 v1.0.30 2020-03-20 16:44:53 -06:00
Tanner Linsley
573edf86a4 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-03-20 16:43:37 -06:00
Kent C. Dodds
6ce2791f87
clear stale timeout when removing queries (#271)
Closes #270
2020-03-20 16:42:44 -06:00
mustafa
df4bd3b549
updated useIsFetching readme (returns number not bool) (#264) 2020-03-18 19:41:30 -06:00
Tanner Linsley
66c9d6419a v1.0.29 v1.0.29 2020-03-18 12:35:08 -06:00
Tanner Linsley
c66dcc9e28 Change to useMountedCallback 2020-03-18 12:34:27 -06:00
Tanner Linsley
8c90121813 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-03-18 12:29:49 -06:00
Tanner Linsley
b3c335d16d Fixes #11 2020-03-18 12:29:44 -06:00
samir elsharkawy
5d11b9ce08
Update example/suspense/README.md (#260)
Fix codesandbox example link
2020-03-18 11:40:30 -06:00
Tanner Linsley
162fe88bfe v1.0.28 v1.0.28 2020-03-17 16:07:54 -06:00
Tanner Linsley
5a920dcacf Fixes #259 2020-03-17 16:05:09 -06:00
Tanner Linsley
de94c1da8f Fixes #258 2020-03-17 15:59:32 -06:00
Tanner Linsley
a3dc28a638 Fix #237 2020-03-17 15:35:19 -06:00
dependabot[bot]
30b4483121
Bump acorn from 6.3.0 to 6.4.1 in /examples/basic (#255)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.3.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.3.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 15:31:03 -06:00
dependabot[bot]
0ea993e95e
Bump acorn from 6.3.0 to 6.4.1 in /examples/custom-hooks (#254)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.3.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.3.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 15:30:53 -06:00
dependabot[bot]
1424564d3c
Bump acorn from 5.7.3 to 5.7.4 (#247)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 15:30:45 -06:00
Tanner Linsley
0b3763d31d
Update README.md 2020-03-15 13:58:35 -06:00
Tanner Linsley
d133fb9783
Update README.md 2020-03-15 13:51:00 -06:00
sigfried
7e3eb33dfc
227 bug pagination example (#243)
* refactor(build): Update dependencies

* fix: Bug in usePaginatedQuery example
2020-03-13 13:55:38 -06:00
Tanner Linsley
389b4900d2 v1.0.27 2020-03-13 13:53:40 -06:00
Tanner Linsley
8b9fb26b90 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-03-13 13:40:23 -06:00
Tanner Linsley
26c80ad74d Update queryCache 2020-03-13 13:40:21 -06:00
Vladislav Shkodin
4363c6a531
feat: add getQueries method (#240) 2020-03-12 10:51:36 -06:00
Camron Flanders
df8f685e01
useMutation docs incorrect (#239)
* useMutation docs incorrect

Variables should be in the return mutate function, and the standard query state (status, error, data) was swapped with callback configuration.

* Update README.md

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2020-03-12 09:15:12 -06:00
Joshua Turner
fc193a11f3
Remove typo from README.md (#233) 2020-03-12 09:02:50 -06:00
Andrew Cherniavskii
7f9e037f4f
Support staleTime: Infinity (#232)
* format

* add failing test

* fix failing test
2020-03-12 09:01:19 -06:00
Tanner Linsley
e1477f2c2b
Update README.md 2020-03-11 15:26:28 -06:00
Tanner Linsley
61a04b8202 v1.0.26 v1.0.26 2020-03-11 11:09:34 -06:00
Tanner Linsley
02ecf4bdee Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-03-11 11:08:35 -06:00
Tanner Linsley
a3b69272b2 v1.0.25 2020-03-11 11:07:56 -06:00
Eduardo Reveles
bcf152d568
fix: call updater function for setQueryData (#226) 2020-03-11 11:05:49 -06:00
Tanner Linsley
cfa02f7c43 v1.0.24 v1.0.24 2020-03-10 16:41:27 -06:00
Hans-Wilhelm Warlo
5f881a93ff
Output es module (#224)
Co-authored-by: Hans-Wilhelm Warlo <hanswilw@users.noreply.github.com>
2020-03-10 16:33:02 -06:00
Tanner Linsley
ee1095be76 Update README.md 2020-03-10 16:14:47 -06:00
Tanner Linsley
42e4354ae7 Update README.md 2020-03-10 13:24:46 -06:00
Tanner Linsley
fc5cd2928f Fixes #216 2020-03-10 11:53:41 -06:00
Tanner Linsley
3775e31987 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-03-10 11:32:47 -06:00
Tanner Linsley
55ab9454c7 Closes #223 2020-03-10 11:32:41 -06:00
Philipp Brumm
b46e46d6ec
fix setQueryData not creating a new query (#222)
* add failing test for setQueryData

* fix check for queries to cover empty array return value from findQueries

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2020-03-10 11:31:04 -06:00
Tanner Linsley
99f5bd9e69 Update queryCache.js 2020-03-10 11:29:27 -06:00
Fernando Abolafio
77ae01bc17
Fix queryCache.removeQueries and add test (#221) 2020-03-10 11:25:05 -06:00
Eblin Lopez
3ed888f7f3
fix: getQueryArgs object syntax queryKey bug (#219)
fixes bug where passing queryKey falsy values would use whole object as the queryKey

it also adds a check for required queryKey, queryFn keys as only config and variables keys get a default value.
2020-03-09 19:41:31 -06:00
Tanner Linsley
5663e67b8d v1.0.23 2020-03-09 13:32:07 -06:00
Tanner Linsley
9f36a0b9d2 Cleanup 2020-03-09 13:24:46 -06:00
Francisco Sousa
cb0e79f74f
Fix type error when a null query key is used (#218) 2020-03-09 12:55:57 -06:00
Andrew Cherniavskii
e35b36c9ad
Fix useQuery infinite loop after query key is changed to falsy (#215)
* add failing test

* add link to issue

* fix failing test

* wrap expect into act?
2020-03-09 12:44:01 -06:00
Andrew Cherniavskii
f561605b6d
fix queryCache not notifying listeners, when query with initialData is added (#213)
* add passing test

* add failing test

* format code

* fix failing test
2020-03-09 12:41:20 -06:00
Andrew Cherniavskii
2fb23e4676
initialize state properly, when initialData is falsy (#212)
* add failing test

* fix failing test

* reverse condition

* Update src/tests/useQuery.test.js

* Update src/tests/useQuery.test.js

* use prepublishOnly npm script

* v1.0.22

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2020-03-06 12:49:05 -07:00
Tanner Linsley
d817209442 v1.0.21 2020-03-06 12:02:28 -07:00
Andrew Cherniavskii
1017233adc
fix query marked as fetching, when setting initialData (#209)
* add failing test

* fix failing test

* remove log
2020-03-06 11:50:06 -07:00