From 44f2faf70912769686accd8b3de52c7a353ea300 Mon Sep 17 00:00:00 2001 From: Arsenije Savic Date: Tue, 12 Sep 2023 12:49:36 -0600 Subject: [PATCH] feat(explore): add poll interval to dhos query --- src/pages/dho/Explore.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/dho/Explore.vue b/src/pages/dho/Explore.vue index 2a7f35605..97997cc43 100644 --- a/src/pages/dho/Explore.vue +++ b/src/pages/dho/Explore.vue @@ -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 { @@ -70,6 +69,7 @@ export default { } }) }, + variables () { return { order: this.order, @@ -77,9 +77,12 @@ export default { first: this.first, offset: 0 } - } + }, + + pollInterval: 1000 }, + ecosystemsList: { query () { return require('~/query/ecosystem/ecosystems-list.gql')