Skip to content
Source
Sign inSign up
TanStack/query

fix/11018 #11245

MergedTkDodomerged 3 commits intomain fromrefs/pull/11245/headmerged by TkDodo View on GitHub

Showing 5 changed files with 26 additions and 20 deletions (loading 2).

x
0 of 5 viewed, 5 left
6 additions and 0 deletions.changeset/dull-masks-melt.mdAdded
View file
@@ -0,0 +1,6 @@
+---
+'@tanstack/preact-query': patch
+'@tanstack/react-query': patch
+---
+​
+revert: remove NoInfer from useQuery return types
17 additions and 17 deletionspackages/preact-query/src/__tests__/useQuery.test-d.tsxModified
View file
@@ -278,23 +278,6 @@
​
- // eslint-disable-next-line vitest/expect-expect
- it('TData should depend from only arguments, not the result', () => {
- // @ts-expect-error
- // eslint-disable-next-line
- const result: UseQueryResult<{ wow: string }> = useQuery({
- queryKey: queryKey(),
- queryFn: () => {
- return {
- wow: true,
- }
- },
- initialData: () => undefined as { wow: boolean } | undefined,