mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-02-04 06:07:54 +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)
|
const queryKey = getQueryKey(path, input)
|
||||||
|
|
||||||
if (lastArg === 'mutate') {
|
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>,
|
...asyncDataOptions as Record<string, any>,
|
||||||
immediate: false,
|
immediate: false,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user