* fix(types): useSuspenseQuery should type-narrow the Error field
* Update packages/query-core/src/types.ts
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
* Update packages/query-core/src/types.ts
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
* ref: use DistributiveOmit from query-core in vue-query
* chore: fix type error in tests
---------
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
* fix(solid-query): client() doesn't return undefined
* fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs
* fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs
* isolated tests
* chore: add test config
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(vue-query): more specific function overloads for queryOptions and useQuery to come before general ones (#9069)
This instructs TypeScript to pick correct function overload when initialData is defined.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* refactor(query-core): make common type more readable
* fix: revert WithRequired type
* fix: remove blank
* refactor(query-core): change Omitkeyof to Omit
* refactor: remove unused common type
* fix: revert type WithRequired
* Fix broken link to TkDodo's Blog page from QueryCache page
It looks like the `docs` part of the url was being removed, so there's now one less `../` in the relative url.
* Fix other broken links on page & add `.md` extension to relative links
as suggested by @TkDodo
* fix: Correct bug where non-undefined values in initialData are not treated as defined
* test: Update test to ensure data is TData only when initialData is defined
* fix: Modified to recognize UndefinedInitialQueryOptions when a function returning undefined is used in initialData.
* test: update test result values for case where a function returning TData is passed to initialData
* fix(vue-query): update `initialData` type to allow InitialDataFunction and NonUndefinedGuard, similar to react-query
* ci: apply automated fixes
* test: update types to include `undefined` in useQueries and useQuery tests in vue-query
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>