From c1adaf78f99b5a8e23bd17f44fa7b843b8b5524d Mon Sep 17 00:00:00 2001 From: Skas Merkushin <108791624+Skanislav@users.noreply.github.com> Date: Tue, 21 May 2024 12:45:14 +0200 Subject: [PATCH] fix: VueJS infinite query parameters reactivity when `hasInfiniteQueryParam` (#1379) --- 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}']`