Is it possible to use garbage collection cache.gc()
with vue-apollo?
Is there any way to clean all store cache data?
For example, is it possible to run it inside a lifecycle?
<script>
import { apolloClient } from "@/main";
export default {
mounted() {
this.$apollo.cache.gc();
// or may be this.$apollo.queries.birds.cache.gc();
// or this.$store.cache.gc();
},
};
</script>
I can not get a list after the first register. I have to refresh it.