···11+---
22+'@urql/vue': patch
33+---
44+55+Add missing support for getter functions as input arguments values to `useQuery`, `useSubscription`, and `useMutation`
+4-3
packages/vue-urql/src/useMutation.ts
···1717import { createRequest } from '@urql/core';
18181919import { useClient } from './useClient';
2020-import { unwrapPossibleProxy } from './utils';
2020+import type { MaybeRef } from './utils';
2121+import { unref } from './utils';
21222223/** State of the last mutation executed by {@link useMutation}.
2324 *
···131132}
132133133134export function callUseMutation<T = any, V extends AnyVariables = AnyVariables>(
134134- query: TypedDocumentNode<T, V> | DocumentNode | string,
135135+ query: MaybeRef<TypedDocumentNode<T, V> | DocumentNode | string>,
135136 client: Ref<Client> = useClient()
136137): UseMutationResponse<T, V> {
137138 const data: Ref<T | undefined> = ref();
···156157157158 return pipe(
158159 client.value.executeMutation<T, V>(
159159- createRequest<T, V>(query, unwrapPossibleProxy(variables)),
160160+ createRequest<T, V>(unref(query), unref(variables)),
160161 context || {}
161162 ),
162163 onPush(result => {