Major Changes
-
#12485
d338303
Thanks @jerelmiller! - Throw an error for queries and mutations if the link chain completes without emitting a value. -
#12484
9a8b9ce
Thanks @jerelmiller! - Removeloading
,networkStatus
, andpartial
properties on all promise-based query APIs. These properties were mostly static and were unnecessary since promise resolution guaranteed that the query was not longer loading.This affects the following APIs:
client.query
client.refetchQueries
client.reFetchObservableQueries
client.resetStore
observableQuery.fetchMore
observableQuery.refetch
observableQuery.reobserve
observableQuery.setVariables
- The
useLazyQuery
execute
function
Minor Changes
-
#12497
ff2cbe1
Thanks @jerelmiller! - Add adata
property toCombinedGraphQLErrors
that captures any partial data returned by the GraphQL response whenerrors
are also returned. -
#12488
c98b633
Thanks @phryneas! - Add a new method for static SSR of React components,prerenderStatic
.
The old methods,getDataFromTree
,getMarkupFromTree
andrenderToStringWithData
have been deprecated in favor ofprerenderStatic
.If used with React 19 and the
prerender
orprerenderToNodeStream
apis from
react-dom/static
, this method can now be used to SSR-prerender suspense-enabled
hook APIs.