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
Andrew Bazhanov
ba7f5ff9c4
fix(types): add queryFn to ReactQueryProviderConfig ( #762 )
v2.4.20
2020-07-16 09:08:44 -06:00
Otacilio Lacerda
6020706169
fix:(prefetchQuery): override default retry behaviour to false ( #760 )
2020-07-16 09:02:26 -06:00
Brandon Orther
ef9d47b1f7
docs: Update updates-from-mutation-responses.md ( #759 )
2020-07-15 17:13:22 -06:00
Tanner Linsley
ba48a923fa
docs: fix documentation sidebar breakpoint
2020-07-15 15:48:36 -06:00
Tanner Linsley
b44a33c01d
fix: make query info object stable
v2.4.19
2020-07-15 13:51:02 -06:00
Bene
67394db8c4
fix: use generic Error type in ReactQueryProviderConfig.queries ( #742 )
v2.4.18
2020-07-15 13:27:04 -06:00
Tanner Linsley
046f354d93
docs: update example dependencies and lock files
2020-07-15 11:41:48 -06:00
Akhil
142b995ea4
docs: add missing options in useQuery's api reference ( #753 )
...
v2.4.17
useQuery's API reference code is missing these while they are in the options below it - refetchIntervalInBackground, initialData, initialStale,
2020-07-15 03:39:59 -06:00
Krisztiaan
316bce50f5
fix(types): make options undefinable ( #752 )
...
better composition support
2020-07-14 19:41:12 -06:00
Tanner Linsley
a2d1f76b6a
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-07-14 16:37:30 -06:00
Tanner Linsley
2a97ee50aa
docs: fix newsletter popup on mobile
2020-07-14 16:37:25 -06:00
Alexander Kachkaev
1baa539ccc
types: Fix typings for cache.clear({ notify: false }) ( #750 )
2020-07-14 10:12:12 -06:00
Kevin Sullivan
7dfa58a76a
docs: remove promise from useMutation ( #747 )
...
* fix(types): remove promise from useMutation
* docs: remote promise from useMutation
2020-07-14 00:22:54 -06:00
Kevin Sullivan
2d0d215944
fix(types): remove promise from useMutation ( #746 )
v2.4.16
2020-07-13 20:25:06 -06:00
Raouf
6b0cd191a4
docs: fix incorrect active nav link ( #741 )
2020-07-11 10:00:44 -06:00
Michael Rambeau
0051b915e2
Add Best of JS badge to README.md ( #739 )
...
Add a badge showing the number of stars on GitHub added yesterday, from Best of JS data
2020-07-11 05:54:36 -06:00
Tanner Linsley
dbd6e95224
Update comparison.md
2020-07-10 21:24:05 -06:00
Bene
52ce234d4f
fix: include undefined in IniniteQueryResult data type ( #738 )
...
v2.4.15
* fix: include undefined in IniniteQueryResult data type
* fix: dtslint
Co-authored-by: Benedikt <benedikt.viebahn@bringmeister.de>
2020-07-10 19:23:52 -06:00
Raouf
119fe8cf3c
docs: docsearch is rendered twice with keyboard shortcuts ( #733 )
...
* fix: docsearch is rendered twice with keyboard shortcuts
* fix: docsearch is rendered twice with keyboard shortcuts in small screens
2020-07-10 11:55:41 -06:00
Tanner Linsley
c30f4241fb
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-07-10 09:34:25 -06:00
Tanner Linsley
c2dcfe7578
docs: fix slide up newsletter form
2020-07-10 09:34:23 -06:00
Edgardo Di Gesto
58f245f14e
docs: Update optimistic-updates.md ( #731 )
...
Minor fixes in code examples
2020-07-10 06:54:27 -06:00
allcontributors[bot]
de15f61cc5
docs: add @zorzysty as a contributor ( #732 )
...
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-07-10 14:41:45 +02:00
Zorza
07350ec5a4
docs: Update links to useQuery hook anchor ( #729 )
...
`useQuery` hook links in `usePaginatedQuery` and `useInfiniteQuery` are pointing to `#options` and such anchor doesn't even exist. This PR fixes that.
2020-07-10 14:38:43 +02:00
Tanner Linsley
c3b311408a
Update videos.mdx
2020-07-09 17:40:49 -06:00
James Russell
fe44466a69
docs: Better comparison info about Apollo ( #727 )
...
Apollo does a deep comparison of the variables object when deciding whether or not the query needs to be re-executed.
I can’t find this in the documentation, but know it to be true from experience. A quick squiz at the source code seems to indicate this is where it’s implemented:
https://github.com/trojanowski/react-apollo-hooks/blob/master/src/useQuery.ts#L119
(‘objToKey’ serialises the variables object.)
2020-07-09 17:33:20 -06:00
Tanner Linsley
7b24b7e433
docs: supporters get to be bolded :)
2020-07-09 16:55:35 -06:00
Tanner Linsley
e19bc9e59f
Update videos.mdx
2020-07-09 16:49:44 -06:00
Tanner Linsley
ce53e07369
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-07-09 14:43:48 -06:00
Tanner Linsley
684c07f29d
Update logo.sketch
2020-07-09 14:43:42 -06:00
Raouf
9c7d3aaefd
docs: fix banner in small screens ( #726 )
...
* docs: wrap get started and repo buttons in small screens
* docs: fix banner in small screens
* docs: fix table styles in small screens
2020-07-09 10:26:49 -06:00
Tanner Linsley
7c2fe9ee13
docs: typo
2020-07-09 10:15:29 -06:00
Tanner Linsley
c6dbee7a96
docs: reorg comparison table
2020-07-09 00:37:20 -06:00
Tanner Linsley
d246b68f1d
docs: update comparison
2020-07-09 00:19:25 -06:00
Tanner Linsley
802a742cb4
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-07-09 00:14:03 -06:00
Tanner Linsley
7c50aeab78
docs: improve comparison table
2020-07-09 00:14:00 -06:00
Raouf
bfe13ba79b
docs: wrap get started and repo buttons in small screens ( #723 )
2020-07-08 23:06:33 -06:00
Tanner Linsley
0b8493af05
docs: update comparison
2020-07-08 22:22:55 -06:00
Tanner Linsley
478fb1e582
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-07-08 22:22:49 -06:00
Raouf
5d41084269
docs: center TWButton children horizontally in small screens ( #722 )
2020-07-08 19:23:14 -06:00