From 2dc87c4191a8aba5c0f91021d839442e96db7792 Mon Sep 17 00:00:00 2001 From: FiodorGherasimenco <12481352+FiodorGherasimenco@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:59:25 +0300 Subject: [PATCH] fix: on mount double request --- .../gql-query/components/gql-query-client/index.marko | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/gql-query/components/gql-query-client/index.marko b/src/components/gql-query/components/gql-query-client/index.marko index 5a22ca6..9bac16a 100644 --- a/src/components/gql-query/components/gql-query-client/index.marko +++ b/src/components/gql-query/components/gql-query-client/index.marko @@ -27,7 +27,10 @@ class { this.on("render", onRender); ready(); } else { - this.once("mount", () => this.doQuery()); + this.once("mount", () => { + this.shouldQuery = false; + this.doQuery(); + }); } }