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
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