listEvents
but then I see that query appear twice in my active queries when I load the page. Is seems to be the same for any new query.Thanks,
If you use BatchHttpLink instead of HttpLink as your terminating link, Apollo Client automatically batches executed GraphQL operations and transmits them to your server according to the batching options you provide.
Resetting the cache This method is asynchronous, because it also refetches any of your active queries. To reset the cache without refetching active queries, use client. clearStore() instead of client. resetStore() .
A fetch policy defines how Apollo Client uses the cache for a particular query. The default policy is cache-first , which means Apollo Client checks the cache to see if the result is present before making a network request. If the result is present, no network request occurs.
Active queries are queries running in mounted components so Apollo knows what query result to update when cache is updated. If you're sure you're not running those queries at the same time, you can check your routing library to see if they don't keep your last page in cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With