mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
remove queryKey for mutation
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user