* chore: ts 5.8
* chore: there are no errors anymore from eslint-plugin-react-hooks
* ci: apply automated fixes
* chore: lock file
* ci: apply automated fixes
* revert: there are no errors anymore from eslint-plugin-react-hooks
* chore: revert angular examples back to ts 5.7.2
as angular doesn't support 5.8 yet
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Change return type to exclude mutationKey using OmitKeyof
- Replace spread operator with Object.assign for better performance
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* feat: typed query filters
* refactor: use util types to extract from dataTag
* chore: try to fix vue types with overloads
* chore: vue types
* test: from #8691
* fix: make options a MaybeRefDeep
* feat: types for filters on other queryClient methods
* fix: add a test for 8684
* test(query-core): add test case for queryClient.isFetching
* chore: update
* Update packages/query-core/src/__tests__/queryClient.test.tsx
* Update packages/query-core/src/__tests__/queryClient.test.tsx
* chore: use fake timers
* test(query-core): use fakeTimer for queryClient.test.tsx's all test
* chore(react-query): add warning when useBaseQuery is called without a queryFn
Added a console error in development mode when useBaseQuery is called without a queryFn or default queryFn.
This helps developers avoid potential issues by ensuring at least one of them is provided.
* fix(react-query): check queryFn after applying defaultQueryOptions
Move queryFn check after defaultOptions.
* chore(react-query): add env check before console error
* chore(react-query): add env check before console error
* ci: apply automated fixes
* fix(react-query): check queryFn after defaultOptions
* Update packages/react-query/src/useBaseQuery.ts
* Update packages/react-query/src/useBaseQuery.ts
* Update packages/react-query/src/useBaseQuery.ts
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix(react-query): prevent type errors and improve inference for dynamic queries on useQueries and useSuspenseQueries
Previously, using useQueries and useSuspenseQueries with a dynamic array of mixed queries caused type errors. This commit ensures that type errors no longer occur and that the returned data is correctly inferred (e.g., as (number | boolean | undefined)[]) instead of unknown[].
* fix(react-query): improve type inference for useQueries and useSuspenseQueries results
* fix(react-query): fix type of queries in useQueries and useSuspenseQueries
* refactor: remove meaningless depths
* test(react-query): move type only tests
* test(react-query): fix type test error
* fix(vue-query): prevent type errors and improve inference for dynamicqueries on useQueries
* fix: prevent type errors and improve inference for dynamicqueries
* fix: solid type tests
not sure why, but compilation must run first with the current tsc version in case solid-query isn't built yet
* fix: prevent type errors and improve inference for dynamic queries
* chore: remove test
* test(react-query): fix failing type tests
* fix: fix test syntax error
* test(react-query): remove tests for result[0].data
* fix: change the result fallback to fix test fail
* rollback(angular-query-experimental): restore injectQueries
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(react-query): make error to be shown when using queryOptions with initialData and skipToken in queryFn inside useSuspenseQueries
* test(react-query): update the test to have a conditional skipToken
* add failing repro test
* update assertinos
* add logg
* ehm - maybe fix?
* rm -only
* make example
* upd
* ad debug logs
* more debugging
* push
* maybe???
* rm log
* revert
* fix: ?
* fix: check for pending status again
otherwise, we risk including promises that happen because of background updates (think persistQueryClient)
* fix: clear serverQueryClient between "requests"
otherwise, we are re-using the cache and the query won't be in "pending" state the second time around
* chore: remove logs
* rethrow next build error
* kick off ci again
* add `shouldRedactError` option
* pluralize
* docs
* chore: more memory
* chore: revert more memory
* don't compare statuses if they don't exist
* ci: apply automated fixes
* lint
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>