Better caching policy on the blocked users page

Read: https://medium.com/@galen.corey/understanding-apollo-fetch-policies-705b5ad71980
for the difference. I think it's exactly what we need to update the
blocked users as soon as we switch to the page.
This commit is contained in:
roschaefer 2019-08-14 00:11:45 +02:00
parent 6b884d84c1
commit 31299235a3

View File

@ -96,7 +96,7 @@ export default {
},
},
apollo: {
blockedUsers: { query: BlockedUsers },
blockedUsers: { query: BlockedUsers, fetchPolicy: 'cache-and-network' },
},
}
</script>