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

5,038 commits

Author SHA1 Message Date
Niek Bosch
c5738db39f
fix: should be able to invalidate queries (#1006) 2020-09-16 14:36:11 -06:00
Niek Bosch
34a7c1ce0c
feat: add remove method and deprecate clear (#1022) v2.20.0 2020-09-16 08:54:28 -06:00
Niek Bosch
607425e375
docs: remove shared config (#1021) 2020-09-16 08:52:13 -06:00
Niek Bosch
c81e309a4d
feat: export QueryCache and remove global query cache from docs and examples (#1017) v2.19.0 2020-09-15 11:15:29 -07:00
Niek Bosch
959e19e193
feat: add always option to refetch options (#1011) v2.18.0 2020-09-14 15:40:35 -07:00
Niek Bosch
460ab339c7
fix: make sure initial data always uses initial stale (#1010) v2.17.2 2020-09-13 15:17:42 -07:00
Niek Bosch
380a049bf0
refactor: remove query status bools (#1009) 2020-09-13 07:55:05 -07:00
Niek Bosch
065ffe0672
docs: update api docs (#1005) v2.17.1 2020-09-13 07:25:30 -07:00
Niek Bosch
c7e342a91a
fix: useInfinityQuery fetchMore should not throw (#1004) 2020-09-12 14:54:15 -07:00
Niek Bosch
3d967bf8ae
feat: add support for tree shaking (#994) v2.17.0 2020-09-12 08:11:02 -07:00
Niek Bosch
3b181101e7
test: add previous data test (#1003) 2020-09-12 08:10:29 -07:00
Niek Bosch
0db8013404
fix: notify query cache on stale (#1001) 2020-09-12 08:09:22 -07:00
Niek Bosch
1eb4d00d65
fix: cancel current fetch when fetching more (#1000) v2.16.1 2020-09-11 12:30:28 -07:00
Corentin Leruth
5c79f72875
refactor: remove unused deepEqual function (#999) 2020-09-11 12:26:10 -07:00
Niek Bosch
93db5b6124
feat: add reset error boundary component (#980) v2.16.0 2020-09-11 07:21:15 -07:00
Niek Bosch
00b9e968a8
refactor: optimize render path and improve type safety (#984) 2020-09-08 13:11:23 -06:00
Fredrik Höglund
7730feeb9b
fix(hydration): overwrite the existing data in the cache if hydrated data is newer (#976) v2.15.4 2020-09-06 14:45:33 -06:00
Tanner Linsley
eeab6bc771 docs: update sponsors 2020-09-06 12:14:50 -06:00
Niek Bosch
ce7acd0cc6
fix: export hydration types (#974) v2.15.3 2020-09-06 12:06:56 -06:00
Rudzainy Rahman
e0cb76f058
Update devtools.md (#973) v2.15.2
Separate the sentences based on contex
2020-09-06 12:03:31 -06:00
Niek Bosch
6678d84c07
refactor: cleanup to reduce file size and add tests (#969) 2020-09-06 12:03:12 -06:00
Niek Bosch
cb2b4252a9
fix: make sure setQueryData is not considered as initial data (#966) 2020-09-05 08:24:00 -06:00
Alex Marshall
1117a51685
docs: typo in useQuery.test (#965) v2.15.1 2020-09-04 10:11:24 -06:00
Niek Bosch
e9770b77aa
fix: use hook config on refocus or reconnect (#964) 2020-09-04 09:55:51 -06:00
Tanner Linsley
4df81f8a42 Merge branch 'master' of https://github.com/tannerlinsley/react-query v2.15.0 2020-09-03 21:42:32 -06:00
Tanner Linsley
6d4eeb8735 docs: update sponsors 2020-09-03 21:42:27 -06:00
Dragoș Străinu
6864624b2f
docs(react-native): add solution for fullscreen error (#958) 2020-09-03 14:07:08 -06:00
Niek Bosch
c6c0de6ccd
feat: add isPreviousData and isFetchedAfterMount flags (#961) 2020-09-03 14:06:52 -06:00
Niek Bosch
7c227912a8
feat: add forceFetchOnMount flag (#954) 2020-09-02 14:22:55 -06:00
Niek Bosch
445ae1fa1a
fix: ignore errors from background fetches (#953) v2.14.1 2020-09-02 09:51:44 -06:00
Tanner Linsley
5c14392ab2 docs: fix sponsors rendering 2020-09-02 09:42:56 -06:00
Tanner Linsley
3b066412c1 docs: update supporters and comparison 2020-09-02 08:38:23 -06:00
Tanner Linsley
89d1694714 docs: update comparison
Closes #920
2020-09-02 07:53:25 -06:00
Niek Bosch
b3c9ce877b
feat: add notifyOnStatusChange flag (#840) v2.14.0 2020-09-02 06:45:22 -06:00
Niek Bosch
52607f6a7e
fix: make sure queries with only inactive observers are also invalidated (#949) v2.13.1 2020-09-01 09:36:59 -06:00
Niek Bosch
e12d0022c9
fix: always use config from last query execution (#942) 2020-08-31 16:11:55 -06:00
Tanner Linsley
8470092fc2 tests: fix setTimeout for ci tests v2.13.0 2020-08-31 15:33:11 -06:00
Niek Bosch
14c4ec6acf
feat: change ReactQueryCacheProvider from hydration to Hydrate (#943) 2020-08-31 15:21:56 -06:00
Niek Bosch
211edc09f3
fix: make sure initial data is used when switching queries (#944) 2020-08-31 15:20:34 -06:00
Tanner Linsley
64be5738b0 fix: add hydration.js to npm files 2020-08-31 15:16:13 -06:00
Tanner Linsley
123104cc51 fix: add hydration.js to npm files 2020-08-31 15:15:26 -06:00
Niek Bosch
f3b2fe05b6
feat: determine staleness locally instead of globally (#933) 2020-08-31 10:18:45 -06:00
Fredrik Höglund
d85f79bdf1
Add queryCache de/rehydration (#728)
* chore(hydration): set up separate hydration entry point

* feat(hydration): add support for de/rehydrating queryCaches

- Add dehydrate(queryCache, config)
- Add hydrate(queryCache, dehydratedQueries, config)
- Add useHydrate(dehydratedQueries, config)

* test(hydration): fix broken type in test

* rename scheduleTimeoutsManually to activateTimeoutsManually

* docs(hydration): add API-docs for hydration and update comparison

* docs(ssr): update ssr-docs with new approach based on de/rehydration

* remove activateTimeoutsManually

* add default shouldDehydrate

* add hydration/ReactQueryCacheProvider

* use unknown for initialData in dehydration

* rename initialQueries  and dehydratedQueries to dehydratedState

* include queryKey instead of queryHash in dehydration

* update initialQueries to dehydratedState in ssr guide docs

* remove shouldHydrate-option
2020-08-29 12:47:56 -06:00
Tanner Linsley
f89a43d52e
Update index.js 2020-08-27 16:42:13 -06:00
Clayton Marshall
efd7d32b83
docs: added more detailed explanation of what the cache timeout does in the detailed walkthough of useQuery (#928)
Co-authored-by: Clayton Marshall <claytn@claytons-mbp.lan>
2020-08-26 17:14:32 -06:00
Tanner Linsley
8f6bdf3ec7 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-08-24 15:33:33 -06:00
Tanner Linsley
365af2908d docs: refactor comparison 2020-08-24 15:11:07 -06:00
Fredrik Höglund
caa6522a72
fix(query): refactor timeouts (#917) v2.12.1
* Remove scheduling timeouts from constructor
* Require explicit timeout activation via new activateTimeouts
* Refactor all internal code to use activateTimeout
* Rename schedule(GC/StaleTimeout) to rescheduleX
* Make reschedule(GC/StaleTimeout) and heal private
* Make reschedule-methods do the right thing based on query state
* Stale timeout is now based on updatedAt
2020-08-24 14:51:56 -06:00
Tanner Linsley
8e7194ce68 docs: update comparison 2020-08-24 14:37:20 -06:00
Niek Bosch
473af3d5ae
feat: add refetch on reconnect functionality (#919) v2.12.0 2020-08-24 13:42:36 -06:00