Dominik Dorfmeister
f000af174d
chore: codesandbox auto builds ( #2062 )
...
* chore: try out codesandbox auto builds
* commit something to trigger deployments
* chore: codesandbox auto builds
set node to v14 because: [!] TypeError: inputSrcs.map(...).flat is not a function
* chore: codesandbox auto builds
use the root directory for publishing, because it contains the package.json
* chore: codesandbox auto builds
let's see if codesandbox picks up the basic example with a leading slash like shown in the docs
* chore: codesandbox auto builds
revert the test commit
* chore: codesandbox auto builds
add basic-typescript example
* chore: codesandbox auto builds
add basic-typescript example to codesandbox builds
* chore: codesandbox auto builds
no-use-before-define
* chore: codesandbox auto builds
don't use exact versions for examples, otherwise, we won't have the latest version when trying them out
2021-03-31 14:20:39 -06:00
Dominik Dorfmeister
e42cbc32df
fix(useQuery): let type of queryKey for the QueryContext be inferred from the key passed to useQuery ( #2047 )
...
v3.13.3
* fix(useQuery): let type of queryKey for the QueryContext be inferred from the key passed to useQuery
* fix(useInfiniteQuery): let type of queryKey for the QueryContext be inferred from the key passed to useInfiniteQuery
* fix(useQuery): pass TQueryKey down to queryObserver
for more type safety and to make queryKeyHashFn generic as well
2021-03-31 08:20:42 -06:00
Dominik Dorfmeister
9428bfdb7f
fix(types): onlineManager: setup function needs to accept the online boolean, and the cleanup function shouldn't ( #2053 )
...
v3.13.2
* fix(types): setup function needs to accept the online boolean, and the cleanup function shouldn't
* fix(types): assign listener to a function so that we can properly unsubscribe
2021-03-30 11:41:52 -06:00
Dominik Dorfmeister
b19ad1f97a
fix(devtools): only subscribe to the queryCache while the devtools are open ( #2045 )
...
v3.13.1
this will stop unnecessary and sometimes costly updates while they are closed
2021-03-30 11:36:01 -06:00
Dawid Kobierski
bd0d4de3c2
docs: Correct typo which could mislead someone ( #1832 )
2021-03-30 11:34:12 -06:00
Dominik Dorfmeister
fbaed6673f
fix(types): align prefetchQuery generics with fetchQuery types ( #2016 )
2021-03-30 11:32:49 -06:00
Justin Thareja
7cf74a4751
docs(examples/optimistic-updates): fix typo ( #2044 )
2021-03-28 22:13:45 +02:00
Vinay Deshmukh
ba86d6f67c
docs(useQuery): add doc for queryKeyHashFn ( #2043 )
2021-03-28 19:40:20 +02:00
Tanner Linsley
4dfcf8989f
docs: fix carbonads
2021-03-26 16:17:30 -06:00
Tanner Linsley
9faeff240f
docs: update footer styles
2021-03-26 15:49:06 -06:00
Tanner Linsley
cdb801f22c
docs: carbonads
2021-03-26 15:43:23 -06:00
Tanner Linsley
bf76f7c087
docs: add carbonads
2021-03-26 15:38:50 -06:00
Fernando Rojo
69d88cca55
docs: fix typo ( #2012 )
2021-03-23 21:15:23 +01:00
Alfonso Millan
6c537eccfc
docs: minor typos on infinite-queries.md ( #2010 )
2021-03-23 21:15:02 +01:00
Omid Nikrah
7797fe261f
docs: add missing comma ( #2005 )
2021-03-23 21:12:04 +01:00
Matt Swartley
d1c9aaa0cd
docs: fix typo ( #1988 )
2021-03-23 21:11:32 +01:00
Bene
9023b0d1f0
docs: fix useIsMutating docs ( #1989 )
2021-03-19 22:12:30 +01:00
Bene
07b9f2ce97
feat: add useIsMutating hook ( #1971 )
...
v3.13.0
* feat: add find/findAll functions to mutationCache, add useIsMutating hook
* docs: add useIsMutating reference
* fix import cycle
* use mutationCache in useIsMutating
* add useIsMutating test and document MutationFilters
* fix broken links
2021-03-18 22:51:34 +01:00
Dominic Lee
cfecf5261e
fix(queryObserver): re-run selector if it throws error ( #1875 )
v3.12.3
2021-03-17 22:49:20 +01:00
Manuel Thomsen
0809adccec
fix: Do not default to false on refetchInactive ( #1934 )
...
v3.12.2
Co-authored-by: Manuel J. Thomsen <mjt@magnetix.dk>
2021-03-15 14:00:38 -06:00
Vaughan Rouesnel
fd26d9097c
docs: Update createLocalStoragePersistor.md ( #1932 )
...
Add missing comma in code example
2021-03-09 11:03:35 -05:00
Dominik Dorfmeister
52bddb67f1
fix: disable context sharing per default ( #1912 )
v3.12.1
2021-03-08 18:03:49 +01:00
Dominik Dorfmeister
fc1425062f
fix (QueryClient): disable context sharing per default ( #1912 )
...
* fix (QueryClient): disable context sharing per default
but still allow for it by adding a `contextSharing` boolean prop when creating the QueryClient context
* document the contextSharing prop
2021-03-08 09:05:51 +01:00
Bill Fienberg
401e1880ee
docs: Add missing period ( #1888 )
2021-03-05 07:53:03 +01:00
Alan Plum
f2137dc4e4
fix (types): Prefer ReadonlyArray for query keys ( #1854 )
...
* Prefer ReadonlyArray for
Since keys are treated as readonly anway, this allows users to use `as const` without nasty surprises.
* Fix type error
* Prefer readonly X[] over ReadonlyArray<X>
2021-03-02 07:05:11 +01:00
Bjarke Hesthaven Søndergaard
23846f5a51
docs: add isFetched to useQuery ( #1810 )
2021-03-02 07:02:06 +01:00
Vojtech Novak
4cecdb1e46
docs: fix typo ( #1867 )
2021-03-02 07:01:11 +01:00
Matt Barnden
2cdd245875
fix:(examples/nextjs) removed unused prob that caused confusion ( #1861 )
2021-02-28 22:26:31 +01:00
Anton Niklasson
211260ffbd
docs: Reorder pages in the introductory docs ( #1865 )
...
* docs: reorder pages in introduction docs
* docs: link from quick start page to key concepts
2021-02-26 11:42:23 -07:00
Dominik Dorfmeister
fbd3488a3c
feat: pass error as second parameter to retryDelay function ( #1838 )
...
v3.12.0
this streamlines the interfaces of retry and retryDelay functions
2021-02-23 05:01:43 -07:00
Tanner Linsley
f01ff6c794
docs: add link for broadcastQueryClient
v3.11.0
2021-02-22 21:28:13 -07:00
Tanner Linsley
4bbfe2ab97
feat(broadcastQueryClient): experimental support for tab/window syncing ( #1793 )
...
* feat(subscriptions): add event types and metadata to subscriptions
* feat(broadcastQueryClient): experimental support for tab/window syncing
* better types, update tests
* feat(broadcastQueryClient): experimental support for tab/window syncing
* rebase and update
* use transactions
* update docs
* Update broadcastQueryClient.md
* Update index.ts
2021-02-22 21:26:36 -07:00
Tanner Linsley
9fad89220c
feat(subscriptions): add event types and metadata to subscriptions ( #1792 )
...
v3.10.0
* feat(subscriptions): add event types and metadata to subscriptions
* better types, update tests
* remove unnecessary setStateOptions
* rename to queryUpdated event, add observers where possible
* Cleanup
* Update queryObserver.ts
2021-02-22 21:13:50 -07:00
Dony Sukardi
ca56877280
docs: fix typo in notifyOnChangeProps ( #1850 )
v3.9.9
2021-02-22 08:16:49 -07:00
John Wright
5e40bf797c
fix: toggle button position ( #1848 )
...
Thus far, the toggle button can take up the full height of the page when
using a `top-` position.
2021-02-22 08:15:35 -07:00
Sergey Falinsky
60103355bf
docs: fix a typo ( #1833 )
2021-02-21 14:05:56 +01:00
Tanner Linsley
7e98e1ca3c
fix: do not attempt to use global for context sharing
v3.9.8
2021-02-16 16:51:31 -07:00
Ihab Khattab
20b653f6d2
docs: Update persistQueryClient.md ( #1791 )
v3.9.7
2021-02-15 23:39:30 -07:00
Tanner Linsley
19e07237ce
fix: cross-module react query context ( #1805 )
...
* fix: cross-module react query context
* ditch the node types for simplicity and ignore `global` for now
2021-02-15 23:38:42 -07:00
Niek
ff619d061f
test: add test for infinite queries and suspense
2021-02-15 13:24:55 +01:00
Niek
2bcc893255
test: add ssr test for infinite queries
2021-02-15 08:31:45 +01:00
Niek
8a613165fc
fix: make sure suspense callbacks get correct data
v3.9.6
2021-02-14 16:26:25 +01:00
Niek Bosch
b124ca8a42
fix: string and array query keys should be similar ( #1799 )
v3.9.5
2021-02-14 14:27:05 +01:00
Niek
7906ce786f
fix: prevent fetch when switching to disabled query
v3.9.4
2021-02-14 08:44:41 +01:00
Niek
dbd3b616fa
fix: use correct query and options when creating infinite query result
v3.9.3
2021-02-13 17:47:58 +01:00
Tanner Linsley
131eb29a82
fix(experimental): persistQueryClient and persistors ( #1789 )
...
v3.9.2
* fix(experimental): refactor to persistQueryClient and persistor interfaces
* clean up basic example
2021-02-12 16:53:29 -07:00
Tanner Linsley
abd7f86ed1
fix: useLocalStorage dependency array
v3.9.1
2021-02-12 15:59:07 -07:00
Tanner Linsley
627560ff8b
fix: useEffect is now defined
...
Fixes #1787
2021-02-12 15:57:37 -07:00
Niek Bosch
f9f9cce852
fix: queries should not end up in an error state when a component unmounts ( #1781 )
v3.9.0
2021-02-12 13:44:55 -07:00
Niek Bosch
4a821b0f1f
feat: add support for concurrent mode ( #1775 )
2021-02-12 13:42:23 -07:00