Skip to content

Commit 1e24d21

Browse files
committed
fix: ignore next result only if not loading
1 parent 8dfe93b commit 1e24d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export function useQueryImpl<
236236

237237
if (!currentResult.loading || currentResult.partial || currentOptions.value?.notifyOnNetworkStatusChange) {
238238
onNextResult(currentResult)
239-
ignoreNextResult = true
239+
ignoreNextResult = !currentResult.loading
240240
} else if (currentResult.error) {
241241
onError(currentResult.error)
242242
ignoreNextResult = true

0 commit comments

Comments
 (0)