Skip to content

Commit

Permalink
fix: ignore next result only if not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 3, 2023
1 parent 8dfe93b commit 1e24d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-apollo-composable/src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export function useQueryImpl<

if (!currentResult.loading || currentResult.partial || currentOptions.value?.notifyOnNetworkStatusChange) {
onNextResult(currentResult)
ignoreNextResult = true
ignoreNextResult = !currentResult.loading
} else if (currentResult.error) {
onError(currentResult.error)
ignoreNextResult = true
Expand Down

0 comments on commit 1e24d21

Please sign in to comment.