* onMutate callback add void in return type
* Add core type
* return type void to undefined
* onMutate return type change 'Promise<TContext> | Promise<undefined> | TContext | undefined'
* chore: fix eslint warnings by including refetch in the dependency array
the refetch function is stable
* chore: mockConsoleError for tests that expect errors to be thrown
to avoid error output on the console during tests
* docs: add query status typing change from enum to string literal
* docs: underline links in headings
as their color is inherited from the heading and links are
indistinguishable from the heading itself
* docs: move query status typing change to typescript section
* docs: underline level four heading links too
* docs: remove unnecessary old line from diff
* 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
* 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
* 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
* 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
* 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>
* 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