Optimized fetching of data on report content page

This commit is contained in:
Grzegorz Leoniec 2019-01-18 12:14:40 +01:00
parent e6326f772b
commit d29852b843
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -107,11 +107,13 @@ export default {
}
},
mounted() {
this.$apollo.queries.Report.refetch()
this.$apollo.queries.Report.startPolling(8000)
this.$apollo.queries.Report.startPolling(10000)
},
apollo: {
Report: query
Report: {
query,
fetchPolicy: 'cache-and-network'
}
}
}
</script>