Skip to content

Commit 95c2a72

Browse files
authored
Fix: Unexpected Result with Nullish Coalescing and Ternary Operators in Infinite queryKey
1 parent 629d588 commit 95c2a72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/plugins/typescript/react-query/src

packages/plugins/typescript/react-query/src/fetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export abstract class FetcherRenderer {
287287
return `(() => {
288288
const { queryKey: optionsQueryKey, ...restOptions } = options;
289289
return {
290-
queryKey: optionsQueryKey ?? ${queryKey},
290+
queryKey: optionsQueryKey ?? (${queryKey}),
291291
queryFn: ${queryFn},
292292
...restOptions
293293
}

0 commit comments

Comments
 (0)