Skip to content

Commit 25d27d8

Browse files
committed
fix(useIsMutating): fix vue warning
onScopeDispose() is called when there is no active effect scope to be associated with
1 parent 761dea7 commit 25d27d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/vue-query/src/useMutationState.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ export function useIsMutating(
2424
status: 'pending' as const,
2525
}))
2626

27-
const length = computed(
28-
() => useMutationState({ filters: unreffedFilters }, client).value.length,
29-
)
27+
const mutationState = useMutationState({ filters: unreffedFilters }, client)
28+
const length = computed(() => mutationState.value.length)
3029

3130
return length
3231
}

0 commit comments

Comments
 (0)