- 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
- 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
- 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
-
#11245
37127db- revert: remove NoInfer from useQuery return types -
#10373
6e3d521- fix(types): propagate generic type parameters touseMutationStateselect callback -
#11224
294d4e6- FixqueryOptionsandinfiniteQueryOptionsreturn types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols. -
#11147
cb6c9d3- DefaultTDataofUseInfiniteQueryOptionsandUseSuspenseInfiniteQueryOptionstoInfiniteData<TQueryFnData>so it matches the hook generics. -
#8737
2215bb0- fix: make mutation variables optional whenundefined extends TVariables -
#11221
1ef4208- Remove experimental render-time prefetching and thepromiseproperty from query results. -
#11228
fb6c3fa- Avoid emitting a runtime import for React Query's type-only exports. -
#11130
8834267- fix(react-query): don't show optimistic fetching for unsubscribed useQueries -
#11233
b866a95- remove unused experimental_beforeQuery and experimental_afterQuery hooks -
#11144
e546d03- fix: remove placeholderData from suspense infinite query -
Updated dependencies [
34f7cee,b4368c4,5bb089d,ba4650c,294d4e6,1f631b3,01a02bf,18c1c1e,5448063,2215bb0,1ef4208,5981771,4a9bef6,bef4bc7,9656dc4,326aaf1,3e83601,c6fc17c]:- @tanstack/query-core@5.102.0