Skip to content

Commit

Permalink
fix: VueJS infinite query parameters reactivity when `hasInfiniteQuer…
Browse files Browse the repository at this point in the history
…yParam` (#1379)
  • Loading branch information
Skanislav authored May 21, 2024
1 parent d81731e commit c1adaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}']`
Expand Down

0 comments on commit c1adaf7

Please sign in to comment.