Description
Issue Description
See #12512 (comment)
When changing variables with notifyOnNetworkStatusChange: true
, data
is set to undefined
when loading. When changing notifyOnNetworkStatusChange
to false
however, if an error is returned as a result, data
is left to the previous variables value, rather than getting set to undefined
. data
should be aligned in both cases so that data
doesn't depend on whether the loading
state is emitted or not.
Link to Reproduction
Reproduction Steps
No response
@apollo/client
version
4.0.0-alpha.8