Skip to content

Commit fc98307

Browse files
fix(composable): Remove immediate result logic (#1388)
1 parent 6c07a47 commit fc98307

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/vue-apollo-composable/src/useQuery.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,6 @@ export function useQueryImpl<
228228

229229
startQuerySubscription()
230230

231-
if (!isServer && (currentOptions.value?.fetchPolicy !== 'no-cache' || currentOptions.value.notifyOnNetworkStatusChange)) {
232-
const currentResult = query.value.getCurrentResult()
233-
234-
if (!currentResult.loading || currentResult.partial || currentOptions.value?.notifyOnNetworkStatusChange) {
235-
onNextResult(currentResult)
236-
}
237-
}
238-
239231
if (!isServer) {
240232
for (const item of subscribeToMoreItems) {
241233
addSubscribeToMore(item)

0 commit comments

Comments
 (0)