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

5,191 commits

Author SHA1 Message Date
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
Juan Pablo Ramírez
66662a4c5f
fix missing dependency in an example (#343)
The focus-refetching example is missing the axios dependency in the
package.json, if we run the example locally there isn't any problem, but
if we use the codesandbox documentation link, the example is showing a
  problem with the missing dependency.
2020-04-12 22:53:11 -06:00
Dragoș Străinu
a0ef66f05c
docs: add links to top with jump2header (#342) 2020-04-12 22:52:19 -06:00
Chang Wang
68cf4e17e0
fix instruction typo in readme (#340)
afaik this isn't an acceptable way to import something (my editor was complaining)
```
const { useQuery } from 'react-query'
```
2020-04-12 22:51:27 -06:00
Kamran Ayub
1a18671584
Ensure we await the rendered text we expect (#338) 2020-04-12 22:51:09 -06:00
Dragoș Străinu
2815b1cb34
docs: fix typo in Rollback examples (#335)
* docs: fix typo in Rollback examples

* docs: add comma

Co-Authored-By: Kamran Ayub <kamran.ayub@gmail.com>

* docs:  add comma after rollback()

Co-authored-by: Kamran Ayub <kamran.ayub@gmail.com>
2020-04-12 22:50:23 -06:00
Clifford
f53d31a2ec
fix typos (#333) 2020-04-08 17:47:53 -06:00
Kamran Ayub
67755ce198
fix(scheduleGarbageCollection): Do not garbage collect newly cached queries of the same hash (#332)
* Add manual/prefetch cleanup test that fails

* Prefetch both queries in second test

* Add cleanup comment that will make the tests pass

* Store when the GC was initiated and compare against updatedAt

* Replace solution with state marker check and streamline test

* Undo setting.json change

* Undo setting.json change
2020-04-08 17:47:29 -06:00
dependabot[bot]
63f3d82182
Bump acorn from 6.3.0 to 6.4.1 in /examples/pagination (#318)
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-04-06 11:17:07 -06:00
dependabot[bot]
5fc9783d56
Bump acorn from 6.3.0 to 6.4.1 in /examples/focus-refetching (#317)
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-04-05 17:33:39 -06:00