Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
fix: polling queries disabled server-side
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Oct 28, 2019
1 parent f1e6b76 commit 6089736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/fallback/PouchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default {
}
},
fetchPolicy: 'no-cache',
pollInterval: 1000 * Math.round(30 + Math.random() * 20),
pollInterval: process.server ? null : 1000 * Math.round(30 + Math.random() * 20),
result ({ data, loading }) {
if (!loading) {
const proposals = _get(data, 'proposals.proposals', [])
Expand Down
2 changes: 1 addition & 1 deletion components/proposal/Vote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default {
this.downvotes = data.tally.downvotes
}
},
pollInterval: 1000 * 30,
pollInterval: process.server ? null : 1000 * 30,
skip () {
return (process.client && !this.$store.state.authProcessDone)
}
Expand Down

0 comments on commit 6089736

Please sign in to comment.