Skip to content

Commit

Permalink
fix(useIsMutating): fix vue warning
Browse files Browse the repository at this point in the history
onScopeDispose() is called when there is no active effect scope to be associated with
  • Loading branch information
juvirez committed May 23, 2023
1 parent 761dea7 commit 30d8535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-query/src/useMutationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ export function useIsMutating(
status: 'pending' as const,
}))

const mutationState = useMutationState({ filters: unreffedFilters }, client)
const length = computed(
() => useMutationState({ filters: unreffedFilters }, client).value.length,
() => mutationState.value.length,
)

return length
Expand Down

0 comments on commit 30d8535

Please sign in to comment.