Repository navigation
Tags: newdaveespionage/react-query
Tags
fix(types): add mutationFn to UseMutationOptions (TanStack#2182)
fix(types): use MutationKey in UseMutationOptions (TanStack#2164)
fix: Add TQueryKey to QueryFunction generic type in QueryOptions, rem… …ove ensureArray from Query (TanStack#2074) * Add TQueryKey to QueryFunction generic type in QueryOptions * Fix typing in souurce * Fix inner typings, add test * Avoid "as unknown" hack * Remove ensureArray
fix: useInfiniteQuery suspense bug (TanStack#2119) * fix useInfiniteQuery suspense bug * real fix * move fix to infiniteQueryObserver
fix(types): Add `undefined` return type in onMutate (TanStack#2089) * 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'
fix(useQuery): type of initialData now corresponds to the type return… …ed by the query-fn (TanStack#2069)
fix(useQuery): let type of queryKey for the QueryContext be inferred … …from the key passed to useQuery (TanStack#2047) * 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
PreviousNext