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

5,395 commits

Author SHA1 Message Date
Tanner Linsley
bd687db34f Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-03-04 13:00:40 -07:00
Tanner Linsley
d4d1b83696 v1.0.13
Closes #195
2020-03-04 13:00:35 -07:00
Tanner Linsley
cae78030ac Update package.json 2020-03-04 12:34:48 -07:00
Tanner Linsley
0d87e28e3e
Update README.md 2020-03-04 11:52:10 -07:00
Tanner Linsley
c5f4439f31
Update README.md 2020-03-04 11:46:40 -07:00
Tanner Linsley
dd2eb6cafa Update README.md 2020-03-04 11:39:51 -07:00
Tanner Linsley
d499ebe22c Update README.md 2020-03-04 11:38:44 -07:00
Tanner Linsley
67c69917ee v1.0.12 2020-03-04 11:01:27 -07:00
Tanner Linsley
37560d3b85 v1.0.11 v1.0.11 2020-03-04 10:21:32 -07:00
Tanner Linsley
63dc6bf064 Update CHANGELOG.md 2020-03-04 10:20:58 -07:00
Tanner Linsley
943b3fc5d1 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-03-04 10:20:13 -07:00
Tanner Linsley
29e07837a0 Fix stale refetching and add back force option
Fixes #192
2020-03-04 10:19:18 -07:00
Adib Firman
2416e6a8bd
Reset failureCount to zero (#191)
* fix: reset failure count when window is visible

* fix: unnecessary code
2020-03-04 08:24:55 -07:00
Tanner Linsley
767f687b7a Update deps 2020-03-02 15:00:37 -07:00
Tanner Linsley
3cc1ed2eab v1.0.10 2020-03-02 12:51:21 -07:00
Alexey Raspopov
93b423b1c8
use reduce() instead of filter().length (#188) 2020-03-02 12:50:00 -07:00
Tanner Linsley
5f09f593a5 v1.0.9 v1.0.9 2020-03-02 12:13:08 -07:00
Tanner Linsley
fc1bd9ab87 Update CHANGELOG.md 2020-03-02 12:12:56 -07:00
Tanner Linsley
5f0ce69fc9 Make paginated tests run faster 2020-03-02 12:12:41 -07:00
Tanner Linsley
fcd560a624 Update CHANGELOG.md 2020-03-02 12:11:17 -07:00
Andrew Cherniavskii
5766c08222
Continue retry on focus (#187)
* add failing test

* format

* add loading state check

* fix failing test
2020-03-02 12:10:32 -07:00
Tanner Linsley
aea14b4006 v1.0.8 2020-03-02 11:47:34 -07:00
Mike Stenhouse
f199cc0b31
Tidy the queryCache.clear() documentation (#186)
Remove redundant callback definition.
2020-03-02 05:28:42 -07:00
Ben Monro
009244b60f
add test badge & remove travis (#182)
* add test badge

* Delete .travis.yml
2020-03-02 05:05:41 -07:00
Leo Bernard
7276387369
Fix grammatical errors in the README (#185) 2020-03-02 05:04:33 -07:00
Andrew Cherniavskii
b0617ae4b7
Remove unused code (#184)
* remove unused code

* remove coverage thresholds
2020-03-02 05:02:33 -07:00
Lu Yu
99e0299946
Add missing axios dependency used by queries.js (#181) 2020-03-01 21:22:08 -07:00
Eliamar Tani
4e918c8460
Fix examples package.json (#179)
* chore: Add missing changes (#140)

* chore: Add missing changes at auto-fetching

* chore: Add missing changes at custom-hooks

* chore: Add missing changes at focus-refetching

* chore: Add missing changes at load-more-infinite-scroll

* chore: Add missing changes at optimistic-updates

* chore: Add missing changes at pagination
2020-03-01 17:32:44 -07:00
Ironimus
885edf97fc
Fix a few typos in README.md (#178) 2020-03-01 17:24:21 -07:00
Zachary Davis
d750c93cca
Update usePaginatedQuery example (#180)
* Update usePaginatedQuery example in README to relevant key name

* Update usePaginatedQuery example with code from README

* Fix key in usePaginatedQuery example
2020-03-01 17:22:54 -07:00
Ben Monro
8c890b7089
chore: add tests.yml build action to run tests on PR / master. (#177)
* Create test.yml

* Update test.yml

* added jest config

* fixed typo

* covg threshold

* consolidating package.json

* frozen lockfile

* rename tests for badge
2020-03-01 13:34:27 -07:00
Andrew Cherniavskii
3724af2686
Test garbage collection of queries without data (#175)
* test garbage collection of queries without data

* format code

* do not use sleep to wait for garbage collection

setTimeout is not reliable, so it's better to avoid it
2020-02-29 08:15:10 -07:00
Andrew Cherniavskii
85907ec808
add test for usePaginatedQuery state (#174) 2020-02-29 08:13:51 -07:00
Zachary Davis
213df4a4fd
Change 'todos' ID to 'projects' (#172)
We are fetching projects in this example, so calling it 'todos' didn't make sense to me.
2020-02-28 14:22:47 -07:00
Tanner Linsley
98b8487d53 Update README.md 2020-02-28 14:07:50 -07:00
Tanner Linsley
fb9538c12b Fix: Falsey query keys properly initialize to a success status and not a loading status
Closes #170
2020-02-28 14:03:44 -07:00
Andrew Cherniavskii
6eb399727f
Make sure query is refetched specified number of times (#168)
* add failing test

* fix failing test

* add failing test

* fix failing test

I would expect useQuery to refetch data once if retry is set to 1

* increase test timeout

* increase timeouts

* fix test in travis

* try higher timeouts

* try --maxWorkers=2

* increase timeout

* increase timeouts

* add console.log

* remove timeouts

* add debug log

* fix tests

* fix garbage collection check

* remove console logs
2020-02-28 10:37:21 -07:00
Tanner Linsley
110374afaa v1.0.6 2020-02-28 09:21:01 -07:00
Tanner Linsley
44ab28d4f2 Fix: Rapid paginated data requests don't trigger an unecessary loading state
Closes #169
2020-02-28 09:19:38 -07:00
Tanner Linsley
b1b9ddc496 v1.0.5 2020-02-27 13:43:20 -07:00
Oliver Winter
2ac58a18c6
Update useMutation memoization (#166)
* Update useMutation memoization

* Update useMutation.js

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2020-02-27 13:38:11 -07:00
Andrew Cherniavskii
1ae462b57f
Fix query state being set to "success" when query function throw (#167)
* add failing test

* fix failing test
2020-02-27 13:37:34 -07:00
Andrew Cherniavskii
a76d1dfdc0
add test for useQuery in manual mode (#164) 2020-02-27 12:13:14 -07:00
Tanner Linsley
bca63746f3 v1.0.4 v1.0.4 2020-02-27 11:14:57 -07:00
Tanner Linsley
0ea77fd07b Fix: Remove the unused query.state.isInactive boolean 2020-02-27 11:14:31 -07:00
Tanner Linsley
2be67cafac v1.0.3 v1.0.3 2020-02-27 10:55:54 -07:00
Tanner Linsley
471ff97274 Update CHANGELOG.md 2020-02-27 10:55:28 -07:00
Tanner Linsley
d80179aca1 Fix: No more infinite render 2020-02-27 10:48:56 -07:00
Tanner Linsley
3e49f29f11 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-02-27 09:43:38 -07:00
Tanner Linsley
1f21e9f140 Fix: Do not attempt to cancel resolved promises 2020-02-27 09:43:35 -07:00