Answer the question
In order to leave comments, you need to log in
How to retry apollo request again based on conditions?
Good afternoon!
There is a request:
apollo : {
someData : {
query : () => someDataQuery,
variables() {
return {
id : this.id,
};
},
result( data ) {
if( data === 0 ) {} // повторить запрос еще раз, если data === 0
console.log( data );
},
error( error ) {
console.error( error );
},
},
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question