remove queryKey for mutation

This commit is contained in:
Robert Soriano
2022-10-29 19:38:29 -07:00
parent 14da8bbda6
commit bad2de134b

View File

@@ -40,7 +40,7 @@ export function createNuxtProxyDecoration<TRouter extends AnyRouter>(name: strin
const queryKey = getQueryKey(path, input)
if (lastArg === 'mutate') {
return useAsyncData(queryKey, () => (client as any)[path][lastArg](input), {
return useAsyncData(() => (client as any)[path][lastArg](input), {
...asyncDataOptions as Record<string, any>,
immediate: false,
})