fix: ignore next result only if not loading

This commit is contained in:
Guillaume Chau
2023-02-03 14:21:03 +01:00
parent 8dfe93b826
commit 1e24d2110c
@@ -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