Major Changes
-
#12536
e14205a
Thanks @jerelmiller! - An initial loading state is now emitted fromObservableQuery
when subscribing ifnotifyOnNetworkStatusChange
is set totrue
. -
#12512
e809b71
Thanks @jerelmiller! -notifyOnNetworkStatusChange
now defaults totrue
. This means that loading states will be emitted (core API) or rendered (React) by default when callingrefetch
,fetchMore
, etc. To maintain the old behavior, setnotifyOnNetworkStatusChange
tofalse
indefaultOptions
.new ApolloClient({ defaultOptions: { watchQuery: { // Use the v3 default notifyOnNetworkStatusChange: false, }, }, });
Patch Changes
-
#12536
e14205a
Thanks @jerelmiller! - The returnednetworkStatus
inuseLazyQuery
is now set tosetVariables
when calling theuseLazyQuery
execute
function for the first time with variables. -
#12536
e14205a
Thanks @jerelmiller! - EnsureObservableQuery
stops polling if switching to astandby
fetchPolicy
. When switching back to a non-standby
fetchPolicy
, polling will resume. -
#12536
e14205a
Thanks @jerelmiller! - Ensure a loading state is emitted when calling theexecute
function after changing clients inuseLazyQuery
. -
#12542
afb4fce
Thanks @jerelmiller! - EnsureuseLazyQuery
does not return apartial
property which is not specified by the result type.