We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d4e2d commit eb48384Copy full SHA for eb48384
src/index.ts
@@ -80,11 +80,11 @@ function createVueQueryProxyDecoration<TRouter extends AnyTRPCRouter>(
80
{ trpcOptions, queryOptions }: { trpcOptions: any; queryOptions: any },
81
{ includeInput = false } = {},
82
) {
83
- const input = toValue(_input)
84
-
85
return defineQueryOptions({
86
- queryKey: computed(() => getQueryKey(path, input, 'query')),
+ queryKey: computed(() => getQueryKey(path, toValue(_input), 'query')),
87
queryFn: async ({ signal }) => {
+ const input = toValue(_input)
+
88
const output = await trpc.query(joinedPath, input, {
89
signal,
90
...trpcOptions,
0 commit comments