[4.0] useLazyQuery
: Changing variables that return error leaves previous data
when notifyOnNetworkStatusChange
is false
#12551
Labels
Milestone
Issue Description
See #12512 (comment)
When changing variables with
notifyOnNetworkStatusChange: true
,data
is set toundefined
when loading. When changingnotifyOnNetworkStatusChange
tofalse
however, if an error is returned as a result,data
is left to the previous variables value, rather than getting set toundefined
.data
should be aligned in both cases so thatdata
doesn't depend on whether theloading
state is emitted or not.Link to Reproduction
#12512 (comment)
Reproduction Steps
No response
@apollo/client
version4.0.0-alpha.8
The text was updated successfully, but these errors were encountered: