From e930f0cbffc94a63e06e293568d16e14a9972e4f Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 2 Dec 2019 03:39:41 +0100 Subject: [PATCH] fix(useQuery): isEnabled --- packages/vue-apollo-composable/src/useQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-apollo-composable/src/useQuery.ts b/packages/vue-apollo-composable/src/useQuery.ts index e033f21..62a0dc4 100644 --- a/packages/vue-apollo-composable/src/useQuery.ts +++ b/packages/vue-apollo-composable/src/useQuery.ts @@ -306,7 +306,7 @@ export function useQuery< // @TODO Doesn't fully work yet, need to initialize with option const enabled = ref() const enabledOption = computed(() => !currentOptions.value || currentOptions.value.enabled == null || currentOptions.value.enabled) - const isEnabled = computed(() => !!((typeof enabled.value === 'boolean' && enabled.value) && enabledOption.value)) + const isEnabled = computed(() => !!((typeof enabled.value !== 'boolean' || enabled.value) && enabledOption.value)) watch(enabled, value => { if (value == null) {