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

5,165 commits

Author SHA1 Message Date
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
Niek Bosch
8fcd002364
refactor: remove gc flag (#825) 2020-08-03 10:35:56 -06:00
Niek Bosch
01c5b29674
test: prevent queries from interfering with each other (#821) 2020-08-03 09:48:12 -06:00
Valeriy
7158e3dd52
fix(useInfiniteQuery): correctly set canFetchMore (#822) v2.5.11
canFetchMore should be false for falsy getFetchMore return value
2020-08-01 20:41:31 -06:00
Kamran Ayub
21d942b178
fix(QueryCache): Use default configuration used for QueryCache instance for context (#808) v2.5.10
* Add failing test

* useConfigContext should use queryCache configRef, which will be defaultConfigRef by default

* ci

* Add failing test

* useConfigContext should use queryCache configRef, which will be defaultConfigRef by default

* use accessor

* Update for TS

* Add failing test for associated queries

* Add failing test for notifyGlobalListeners

* rename to defaultQueryCache in module scope to catch name conflicts

* Fix passing incorrect queryCache ref
2020-07-31 15:10:19 -06:00
Kamran Ayub
46a5584512
fix(types): Fix defaultConfig typing for makeQueryCache (#807)
* Add failing type test

* Add failing error test

* Passing type test

* revert settings.json dangit

* ci
2020-07-31 15:06:41 -06:00
Jonathan Stoye
cbb90f37e2
chore: missing colons in issue template (#800) 2020-07-31 15:05:02 -06:00
Niek Bosch
381dbe2e09
fix: check if the document global exists before usage (#817) v2.5.9 2020-07-30 06:36:24 -06:00
Michaël De Boey
126790ba96
refactor: Update useBaseQuery.ts (#813) v2.5.8 2020-07-29 16:56:42 -06:00
Michaël De Boey
ac944144d4
fix: Update utils.ts (#812) 2020-07-29 16:55:52 -06:00
Michaël De Boey
51bb60fedc
fix: Update setFocusHandler.ts (#811) v2.5.7 2020-07-29 16:47:42 -06:00
Niek Bosch
e23f9343fa
refactor: add typescript support (#767) 2020-07-29 14:47:01 -06:00
Tanner Linsley
d6b1f4bad9 docs: fix RQE callout padding 2020-07-29 10:38:54 -06:00
Tanner Linsley
77c7b5c8d9 docs: improve RQE callout colors 2020-07-29 10:38:31 -06:00
Tanner Linsley
5a8a1a9f6c docs: improve RQE callout 2020-07-29 10:35:55 -06:00
Tanner Linsley
953c8696a4 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-07-28 10:03:42 -06:00
Tanner Linsley
15b9c9b3be docs: add course banner 2020-07-28 10:03:40 -06:00
rj-morgan
7bc83d07eb
docs: fix broken links (#803) 2020-07-27 20:36:57 -06:00
rj-morgan
d0a01e88a0
docs: fix code for custom mutation hook (#802) 2020-07-27 19:26:19 -06:00
Tanner Linsley
52468e1347 Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-07-27 08:53:07 -06:00
Tanner Linsley
c3711e7dd2 docs: add learn link 2020-07-27 08:51:36 -06:00
Nico H
99fa7a095e
docs: fixes markdown links (#796)
* docs: fixes markdown links

Dependent Queries & Query Keys are pointing to api.md headers when they're documented in /guides/queries/(...)

* docs: fixes links with mk extension
2020-07-27 07:03:33 -06:00
Daniel Eze
91c10d8990
docs: simple documentation update 🙂 (#794) 2020-07-24 08:35:37 -06:00
Tanner Linsley
e3740ed4d3
Update comparison.md 2020-07-23 22:06:06 -06:00
Tanner Linsley
4d1c5c17a7 docs: update fans 2020-07-23 14:40:04 -06:00
mackie
4fd0725330
docs(ssr): fix typo (#792) 2020-07-22 20:17:37 -06:00
Tucker Whitehouse
2c49b5d29c
fix(ReactQueryConfigProvider): correctly update defaultConfigRef (#775) v2.5.6
`useConfigContext` will always be populated. Checking the context value before defaultConfig update
2020-07-22 10:01:44 -06:00
Adib Firman
84139325de
docs: add axios library to prefetching example (#791) 2020-07-22 09:57:29 -06:00
Anders D. Johnson
270fa0f423
docs: fix typo for initialData API (#788) 2020-07-21 16:35:21 -06:00
Tanner Linsley
bc22de055e Merge branch 'master' of https://github.com/tannerlinsley/react-query 2020-07-21 12:17:35 -06:00
Tanner Linsley
27dd824ad0 Update logo.sketch 2020-07-21 12:17:32 -06:00
Niek Bosch
8766a35d2c
fix: reduce the number of renders (#754) v2.5.5 2020-07-21 10:35:44 -06:00
Matthis Duclos
b6b05d5e7a
docs: fix fetchMoreVariableOverride description (#786)
There was a reference to a previous API instead of `getFetchMore`
2020-07-21 09:32:23 -06:00
Alexandre Da Costa
3896f0db5f
docs: Add missing isStale in api.md (#784) 2020-07-20 10:59:51 -06:00
Dragoș Străinu
b01d26973d
chore: remove jump2header, doctoc scripts (#781)
As react-query docs are now on a separate site maybe there is no need for jump2header, doctoc scripts
2020-07-19 19:22:53 -06:00
Nguyen You
21e160d86f
docs: fixed a typo (#779) v2.5.4 2020-07-17 19:42:55 -06:00
Tucker Whitehouse
7ac9238e4f
fix(queryCache): merge defaultConfig options (#774)
Providing a `defaultConfig` to `makeQueryCache` will merge `shared`, `queries`, and `mutations`
objects instead of overwriting. This allows you to configure only some options.
2020-07-17 15:31:23 -06:00
Jeremy Liberman
8b5a209c43
docs: refactor search modal (#773)
* docs: refactor search modal

  - state/Modal has been moved into a SearchProvider
  - <Search /> is basically just the UI "button"
  - keyboard shortcut works everywhere
  - rendering <Search /> twice won't trigger 2 modals

* fix: weird layout squish
2020-07-17 15:29:20 -06:00
Tanner Linsley
5e86d334e5 fix: force patch release v2.5.3 2020-07-17 11:30:28 -06:00
Alex Young
b8fb0653e9 docs: Update overview.md (#771)
Some small grammatical fixes
2020-07-17 11:30:28 -06:00
Maxim
29b9233f9f fix(ReactQueryCacheProvider): use shared queryCaches (#768)
`ReactQueryCacheProvider` uses own `queryCaches`, looks like a typo after refactoring.

Due to that typo, `onWindowFocus` is completely broken when isolated query cache is used.
2020-07-17 11:30:28 -06:00
Tanner Linsley
ff20232cdc docs(examples): fix infinite scroll example to stop loading when it should
Closes #766
2020-07-17 11:30:28 -06:00
Fredrik Höglund
2e4e941ae4 fix(queryCache): caches from makeQueryCache should be unfrozen/cache by default in node (#749)
Fix so the default behaviour matches the one described in the Readme.
Add tests for the above behaviour.

Closes #706
2020-07-17 11:30:28 -06:00
Tucker Whitehouse
c227b2c3e9 feat(queryCache): pass query to subscribers (#765)
Any cache update triggered by a query will pass the query as the second argument to subscribers.
This enables executing side-effects for specific query updates.
2020-07-17 11:30:28 -06:00
Kamran Ayub
3e1880fbb4
fix(types): pass TError down to CachedQueryState (#763) v2.4.21 2020-07-16 11:03:15 -06:00