You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, showNetworkError is not accessible, as the "this" object is the apollo query object. I've tried different styles of "error: function(err) { .. } and "error(err) { ... }", with not much luck. Clearly I feel like I've missed something obvious - how are we able to set data from the callbacks?
Kind regards
James
The text was updated successfully, but these errors were encountered:
Vue, vue-apollo, apollo-client et al are new technologies for me, so excuse the newbie question :-)
I'm trying to implement a simple error callback for my vue component (vue-loader) to set a variable in my data context, as follows:
Here, showNetworkError is not accessible, as the "this" object is the apollo query object. I've tried different styles of "error: function(err) { .. } and "error(err) { ... }", with not much luck. Clearly I feel like I've missed something obvious - how are we able to set data from the callbacks?
Kind regards
James
The text was updated successfully, but these errors were encountered: