From 5258ad181382733770747c9497798ecda006d5d9 Mon Sep 17 00:00:00 2001 From: Skas Merkushin Date: Wed, 15 May 2024 17:47:04 +0200 Subject: [PATCH] fix: VueJS infinite query parameters reactivity when `hasInfiniteQueryParam` --- packages/query/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/query/src/index.ts b/packages/query/src/index.ts index 18e1de51b..951c0f46a 100644 --- a/packages/query/src/index.ts +++ b/packages/query/src/index.ts @@ -931,7 +931,7 @@ const generateQueryImplementation = ({ ) return param.destructured; return param.name === 'params' - ? `{...params, ${queryParam}: pageParam || ${ + ? `{...${isVue(outputClient) ? `unref(params)` : 'params'}, ${queryParam}: pageParam || ${ isVue(outputClient) ? `unref(params)?.['${queryParam}']` : `params?.['${queryParam}']`