* feat(queryClient): add setQueriesData utility
a function which can be used to fuzzily set queryData for multiple queries
* feat(queryClient): add setQueriesData utility
docs
* feat(queryClient): add setQueriesData utility
improve docs
* feat(queryClient): add setQueriesData utility
wrap setQueriesData in notifyManager.batch to avoid unnecessary re-renders
* feat(useQuery): run placeholderData through select
* feat(useQuery): run placeholderData through select
add a test for placeholderDataFunction
* feat(useQuery): run placeholderData through select
fix structural sharing, in the options, we might also have the placeholderData function, but on the previous result, we have the correct result from the previous iteration, which we want to keep if possible
1. Make comment in the code snippet for `removeQueries` more exact
2. correct comment for `refetchQueries` used for `posts` query key, to use 'posts' instead of 'post'.
Typings did not allow passing a function taking `setFocused` to addEventListener
Fixing by using the same typings as in `onlineManager.ts`, same behavior as set in #2053
* 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