Skip to content

Commit

Permalink
feat(explore): add poll interval to dhos query
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-IS authored Sep 12, 2023
2 parents d8a8487 + 44f2faf commit 75bc1c2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/pages/dho/Explore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ export default {
apollo: {
dhos: {
query () {
return require('~/query/dao/dao-list.gql')
},
query () { return require('~/query/dao/dao-list.gql') },
update: data => {
return data?.queryDao?.map(dao => {
return {
Expand All @@ -70,16 +69,20 @@ export default {
}
})
},
variables () {
return {
order: this.order,
filter: this.textFilter ? { details_daoName_n: { regexp: `/.*${this.textFilter}.*/i` } } : null,
first: this.first,
offset: 0
}
}
},
pollInterval: 1000
},
ecosystemsList: {
query () {
return require('~/query/ecosystem/ecosystems-list.gql')
Expand Down

0 comments on commit 75bc1c2

Please sign in to comment.