query @tanstack/react-query@5.102.0

@tanstack/react-query@5.102.0
Changed 2
  • Update usePrefetchQuery and usePrefetchInfiniteQuery to use queryClient.query and queryClient.infiniteQuery
  • Default TData of UseInfiniteQueryOptions and UseSuspenseInfiniteQueryOptions to InfiniteData<TQueryFnData> to match the hook generics
Fixed 7
  • Restore NoInfer in useQuery return types
  • Propagate generic type parameters to useMutationState select callback
  • Fix queryOptions and infiniteQueryOptions return types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols
  • Make mutation variables optional when undefined extends TVariables
  • Avoid emitting a runtime import for React Query's type-only exports
  • Don't show optimistic fetching for unsubscribed useQueries
  • Remove placeholderData from suspense infinite query
Removed 2
  • Remove experimental render-time prefetching and the promise property from query results
  • Remove unused experimental_beforeQuery and experimental_afterQuery hooks

From query

Minor Changes
  • #10668 e674826 - react-query: update usePrefetchQuery and usePrefetchInfiniteQuery to use queryClient.query and queryClient.infiniteQuery
Patch Changes
View original

Upgraded? How did it go?

Discussion