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
Tanner Linsley
d23077ff00
Examples: Added a query cancel demo to the sandbox example
2020-02-27 09:13:28 -07:00
Tanner Linsley
d9cf5dcfae
Fix: All try/catch block return promises are now awaited
2020-02-27 09:13:06 -07:00
Tanner Linsley
27cc8c29ad
Fix: Use isInactive state, immediately garbage collect queries with no data cached.
2020-02-27 08:36:29 -07:00
Tanner Linsley
023fef50b6
Update sandbox deps
2020-02-27 08:34:56 -07:00
Oliver Winter
2d58938710
Stop auto fetch for manual useQuery option ( #163 )
2020-02-27 08:21:30 -07:00
Tanner Linsley
94539e17c7
Fix: First UID is no longer regenerated due to falsey assertion
...
Fixes #158
2020-02-27 08:14:38 -07:00
Oliver Winter
db670ee2c4
Update useMutation return types in readme ( #162 )
...
* Update useMutation return types in readme
* Update wording of idle status
2020-02-27 07:26:57 -07:00
Tanner Linsley
11fe5311ed
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-02-27 07:26:02 -07:00
Tanner Linsley
a44bddff69
Update README.md
2020-02-27 07:25:55 -07:00
Donavon West
af32dbc294
fix some readme typos ( #157 )
2020-02-26 15:19:25 -07:00
Andrew Cherniavskii
64a03a7d48
add unit test for setConsole ( #156 )
2020-02-26 13:44:23 -07:00
Tanner Linsley
4c468dd106
v1.0.2
2020-02-26 13:37:39 -07:00