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

5,550 commits

Author SHA1 Message Date
Gabriel Loiácono
f99e39e4fb
fix(utils): compare equals first to prevent error on null variables (#440)
* fix(utils): compare equals first on includes

* test(queryCache): added setQueryData updater test
2020-05-04 09:38:52 -06:00
Tanner Linsley
7031167cb6
Update README.md 2020-05-02 23:07:30 -06:00
Tanner Linsley
7cce707a32 Update Types 2020-05-01 16:49:02 -06:00
Tanner Linsley
ff5595b98f v1.3.0 2020-05-01 11:50:15 -06:00
Tanner Linsley
21ace4c49d Update CHANGELOG.md 2020-05-01 11:48:33 -06:00
Tanner Linsley
89bec20393 Use deep equal to compare incoming data for referential stability
Fixes #430
2020-05-01 11:43:38 -06:00
Tanner Linsley
1353c420d1 Trigger side-effects for non-mounted queries too
Fixes #357
2020-05-01 10:14:05 -06:00
Tanner Linsley
7d786c7631 Fix suspense double rendering
Fixes #324
2020-05-01 09:53:13 -06:00
Simon Carpinter
c83bb19607
test that Suspense mode calls queryFn only once (#325)
Co-authored-by: Simon Carpinter <simon.carpinter@charge.net.nz>
2020-05-01 08:49:58 -06:00
Andrew Cherniavskii
43e223ac1f
Fix refetchInterval infinite loop (#404)
* use queryRef to avoid infinite loop in refetch interval effect

* fix original config being mutated by config from another hook instance

* store refetchIntervalId and fix refetchInterval comparison

* clear query.currentRefetchInterval on cleanup
2020-04-30 21:16:11 -06:00
Andrew Bazhanov
6bf1f300f6
types: add isStale to query results (#422) 2020-04-29 10:00:07 -06:00
hiramatsutaku
de67ab7527
Fix typo (#410) 2020-04-26 09:31:32 -06:00
Krasimir Nedew
0a66bab348
fix: edge case when refetching infinite query (#409) 2020-04-26 09:29:49 -06:00
Krasimir Nedew
9cd7a3578f
fix: rebuild cursors on infinite query refetch (#408)
* fix: rebuild cursors on infinite query refetch

* update the infinite query docs about refetching
2020-04-26 09:19:34 -06:00
TC Schiller
a8fbacd583
Ensure useIntersectionObserver hook only reruns on target.current updates (#406) 2020-04-25 19:17:10 -06:00
allcontributors[bot]
24bac238bb
docs: add tibotiber as a contributor (#387)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-21 08:15:00 -06:00
Alex Lockhart
652567be0b
Update CachedQuery to add type to state member (#386) 2020-04-21 08:13:29 -06:00
Thibaut Tiberghien
da81b9f635
add note to the docs about shared options (#384) 2020-04-20 22:32:58 -06:00
Tanner Linsley
7d6b9fb57e v1.2.9 2020-04-20 11:44:56 -06:00
Andrew Cherniavskii
1467ac14c5
add homepage to package.json (#383) 2020-04-20 11:43:20 -06:00
Andrew Cherniavskii
8a19f6cc23
Use jest node environment instead of mocking window object for SSR tests (#382)
* use jest node environment instead of mocking window object

* clear query cache after each test

* remove unnecessary test cleanup
2020-04-20 11:29:34 -06:00
Tanner Linsley
f1ca0a1970 Update README.md 2020-04-20 11:04:57 -06:00
Tanner Linsley
2a5294f9f2 v1.2.8 v1.2.8 2020-04-20 09:56:42 -06:00
Tanner Linsley
76199778a0 Fix timeouts to not fire in server-like evironments
Fixes #381
2020-04-20 09:55:53 -06:00
Daniel Schmidt
3eafb40cec
types: add retry function to query options (#380) 2020-04-20 07:58:47 -06:00
Andrew Cherniavskii
dd52f77e84
add unit test for cacheTime: Infinity (#378) 2020-04-19 13:50:44 -06:00
Andrew Cherniavskii
5f1e3a52ec
include scripts in npm package (#377) 2020-04-19 13:50:24 -06:00
Tanner Linsley
5559b447db Update README formatting 2020-04-18 10:29:56 -06:00
Tanner Linsley
12ef20032d Remove Jump2Header 2020-04-18 10:09:28 -06:00
Tanner Linsley
0b54fecee8 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-04-18 10:01:59 -06:00
Tanner Linsley
69d4e94bde 1.2.7 - Add Typscript Type Definitions 2020-04-18 10:00:55 -06:00
allcontributors[bot]
a0a7023cf0
docs: add cherniavskii as a contributor (#369)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-18 09:58:48 -06:00
Przemyslaw Kalisiewicz
62119c4897
Extract status for the easier readability in simple example - docs (#367) 2020-04-18 08:46:23 -06:00
Rohit Garg
b89aebeb60
Adding all-contributors support (#366) 2020-04-18 08:45:41 -06:00
Avi Press
8a6ec246de
Update @scarf/scarf version to ^1.0.0 (#363) 2020-04-16 23:15:26 -06:00
Tanner Linsley
218cd73aa3 Prefetch next page! 2020-04-16 16:11:41 -06:00
Tanner Linsley
07daf3fc8a v1.2.6 2020-04-16 09:19:12 -06:00
Tanner Linsley
70c7b00479 Fix issue where isLoading === true when falsey query key supplied
Fixes #360
2020-04-16 09:17:56 -06:00
Tanner Linsley
9fa8336c73 Update README.md 2020-04-15 09:49:48 -06:00
Tanner Linsley
0fb1621de8 Update README.md 2020-04-15 09:48:23 -06:00
Tanner Linsley
6db2cd3951 v1.2.5 2020-04-15 09:41:38 -06:00
Tanner Linsley
5ae0375afa v1.2.4 2020-04-14 20:13:27 -06:00
Tanner Linsley
f8932da3d4 v1.2.4 v1.2.4 2020-04-14 20:13:26 -06:00
Tanner Linsley
1158bd1ecb Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-04-14 20:10:31 -06:00
Tanner Linsley
0567d9d045 Fix #352 2020-04-14 20:10:28 -06:00
Juan Pablo Ramírez
76eea1db6a
add rick and morty example (#354)
* add rick and morty example

this is a very similar example to the star wars, since the star wars api
is going to be deprecated and is currently down, my proposal is to use
the rick and morty example to replace the star wars example that is not
working right now.

* add rick and morty example to README
2020-04-14 19:16:39 -06:00
Drazen Bjelovuk
836092352d
add cacheTime: Infinity to docs (#350) 2020-04-13 21:36:29 -06:00
Drazen Bjelovuk
b8106866fe
accept infinite cacheTime (#349) 2020-04-13 18:47:39 -06:00
Tanner Linsley
7cabf53e4c v1.2.3 2020-04-13 00:19:03 -06:00
Tanner Linsley
16c6dfbc8c v1.2.2 2020-04-13 00:18:16 -06:00