Major Changes
-
#12536
e14205aThanks @jerelmiller! - An initial loading state is now emitted fromObservableQuerywhen subscribing ifnotifyOnNetworkStatusChangeis set totrue. -
#12512
e809b71Thanks @jerelmiller! -notifyOnNetworkStatusChangenow 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, setnotifyOnNetworkStatusChangetofalseindefaultOptions.new ApolloClient({ defaultOptions: { watchQuery: { // Use the v3 default notifyOnNetworkStatusChange: false, }, }, });
Patch Changes
-
#12536
e14205aThanks @jerelmiller! - The returnednetworkStatusinuseLazyQueryis now set tosetVariableswhen calling theuseLazyQueryexecutefunction for the first time with variables. -
#12536
e14205aThanks @jerelmiller! - EnsureObservableQuerystops polling if switching to astandbyfetchPolicy. When switching back to a non-standbyfetchPolicy, polling will resume. -
#12536
e14205aThanks @jerelmiller! - Ensure a loading state is emitted when calling theexecutefunction after changing clients inuseLazyQuery. -
#12542
afb4fceThanks @jerelmiller! - EnsureuseLazyQuerydoes not return apartialproperty which is not specified by the result type.