Skip to content

Commit c48a77f

Browse files
committed
chore: eslint reports an unused type assertion here
1 parent 8e4a340 commit c48a77f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/vue-query/src/useMutationState.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,9 @@ export function useMutationState<TResult = MutationState>(
7171
): Readonly<Ref<Array<TResult>>> {
7272
const filters = computed(() => cloneDeepUnref(options.filters))
7373
const mutationCache = (queryClient || useQueryClient()).getMutationCache()
74-
const state = shallowRef(getResult(mutationCache, options)) as Ref<
75-
Array<TResult>
76-
>
74+
const state = shallowRef(getResult(mutationCache, options))
7775
const unsubscribe = mutationCache.subscribe(() => {
78-
const result = getResult(mutationCache, options)
79-
state.value = result
76+
state.value = getResult(mutationCache, options)
8077
})
8178

8279
watch(filters, () => {

0 commit comments

Comments
 (0)