Answer the question
In order to leave comments, you need to log in
How to track the status of apollo consumer?
Good afternoon. there is such a request and I need to track its status in order to hang up the preloader if the request is pending
const DownloadTicketAnyFormat = ({ id, query, pathToLink, title }) => (
<ApolloConsumer>
{client => (
<span id={id} onClick={async e => {
const { data } = await client.query({
query: query,
variables: {
id: e.target.id
}
})
await window.open(data.seasonTicket[pathToLink].publicLink);
}}>{title}</span>
)}
</ApolloConsumer>
)
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