From fc983077dcf89e10b4eb88731eee77b375a8a85f Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Wed, 5 Oct 2022 22:31:51 +0900 Subject: [PATCH] fix(composable): Remove immediate result logic (#1388) --- packages/vue-apollo-composable/src/useQuery.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/vue-apollo-composable/src/useQuery.ts b/packages/vue-apollo-composable/src/useQuery.ts index 9a9ca28..e9b70e4 100644 --- a/packages/vue-apollo-composable/src/useQuery.ts +++ b/packages/vue-apollo-composable/src/useQuery.ts @@ -228,14 +228,6 @@ export function useQueryImpl< startQuerySubscription() - if (!isServer && (currentOptions.value?.fetchPolicy !== 'no-cache' || currentOptions.value.notifyOnNetworkStatusChange)) { - const currentResult = query.value.getCurrentResult() - - if (!currentResult.loading || currentResult.partial || currentOptions.value?.notifyOnNetworkStatusChange) { - onNextResult(currentResult) - } - } - if (!isServer) { for (const item of subscribeToMoreItems) { addSubscribeToMore(item)