0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,909 commits

Author SHA1 Message Date
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
Tanner Linsley
90fb8a471c fix: force release of refactor (for bundle size) v2.11.1 2020-08-24 10:22:50 -06:00
Niek Bosch
15f4186f35
refactor: reduce infinite query renders and bundle size (#914) 2020-08-24 10:18:39 -06:00
Niek Bosch
6b9248222f
feat: make sure paused queries resolve (#909) v2.11.0 2020-08-24 09:42:11 -06:00
Alexander Kachkaev
3ebb454756
fix: Fix typing for refetchInterval (#908) v2.10.1 2020-08-24 09:35:02 -06:00
Christoph Dörfel
2ff6041b0f
feat(useQuery): enable the throwOnError option of useQuery.refetch (#907) v2.10.0
* feat(useQuery): allow useQuery.refetch to throw an error when the fetch fails

Enables the `throwOnError` configuration option for `useQuery.refetch` that has
as of yet only been present in the documentation but not in the code.

Relates to: #903 #843

* refactor(useQuery): move "useQuery.refetch" options to dedicated type
2020-08-23 08:12:02 -06:00
Ryan Stelly
7d25d2f6e8
docs(setFocusHandler): React Native Example (#912) 2020-08-22 16:48:49 -06:00
Aadesh Chandra
5d1dc70ca9
docs: typo in useInfiniteQuery api docs (#905) v2.9.0 2020-08-21 07:05:45 -06:00
Niek Bosch
26600b15bc
feat: add structural sharing configuration flag (#902) 2020-08-21 07:04:45 -06:00
Charlie An
799eb9039e
docs: mutationFn should return a Promise type (#854) 2020-08-20 10:55:30 -06:00
lgenzelis
b8a0b99367
docs: Update api.md (#862)
Added description for a couple of return values missing from the `useMutation` documentation.
2020-08-20 10:54:32 -06:00
Niek Bosch
15f53ca614
refactor: move prevent set state in render logic to useIsFetching hook (#874) 2020-08-20 10:54:03 -06:00
Niek Bosch
73ccba8612
feat: publish new types (#897) v2.8.0 2020-08-20 10:46:20 -06:00
Rui Saraiva
ee2735d84c
chore(actions): revert semantic release action code (#895) v2.7.1 2020-08-20 10:29:17 -06:00
Niek Bosch
227afcd417
fix: make sure observers only subscribe to queries when started (#899) 2020-08-20 10:28:38 -06:00
Niek Bosch
4314ba5384
refactor: define configuration merging strategy (#871) 2020-08-20 09:34:34 -06:00
Rui Saraiva
e7432db60c
chore: remove deprecated NPM scripts (#891) 2020-08-20 08:38:50 -06:00
Rui Saraiva
2b26c1ab0d
chore(actions): add cache to NPM packages on GitHub actions (#888) 2020-08-19 20:30:27 -06:00
Niek Bosch
75a1d3d36f
feat: replace query instance with query observer (#867) v2.7.0 2020-08-19 13:55:12 -06:00
Niek Bosch
dc70f7d656
feat: add structural sharing of data between query results (#883) v2.6.0 2020-08-19 11:51:03 -06:00
Nomaan Ahgharian
3545717b95
fix: readme header image (#863) v2.5.14 2020-08-13 15:57:09 -06:00
Tanner Linsley
c1ad811f0e Update README.md 2020-08-13 14:43:29 -06:00
Tanner Linsley
77c160bed8 docs: add scarf analytics to docs 2020-08-13 14:42:57 -06:00
Sergio A. Arevalo Soria
58acca1c6b
docs: fix anchor (#837) 2020-08-05 12:30:07 -06:00
Pete Thorne
bd3dc8be95
docs: Adds TS version requirement (#836)
* Adds TS version requirement

* Typo
2020-08-05 09:24:25 -06:00
Tanner Linsley
a57cd7df30 docs: update comparison 2020-08-04 11:07:24 -06:00
Tanner Linsley
3e053ea6e7 docs: update comparison for SWR pagination/infinite 2020-08-04 10:47:06 -06:00
Niek Bosch
b5d1f0d546
test: fix suspense test (#831) 2020-08-04 07:25:01 -06:00
Niek Bosch
140515d44b
fix: make sure all callbacks are called in suspense mode (#828) v2.5.13 2020-08-03 20:52:17 -06:00
Bene
880f971176
fix: fetch query when any instance is enabled (#827) v2.5.12 2020-08-03 12:54:17 -06:00