Skip to content

Commit 7d04268

Browse files
ahmedrowaihimrlubos
andcommitted
hotfix(createQueryKeyCallExpression): reduce generated boilerplate
Co-authored-by: Lubos <[email protected]>
1 parent 8f32b50 commit 7d04268

File tree

1 file changed

+1
-1
lines changed
  • packages/openapi-ts/src/plugins/@tanstack/query-core

1 file changed

+1
-1
lines changed

packages/openapi-ts/src/plugins/@tanstack/query-core/queryKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const createQueryKeyLiteral = ({
272272
parameters: [
273273
tsc.ots.string(id),
274274
'options',
275-
tsc.ots.boolean(!!isInfinite),
275+
isInfinite || tagsExpression ? tsc.ots.boolean(Boolean(isInfinite)) : undefined,
276276
tagsExpression ? tagsExpression : undefined,
277277
],
278278
});

0 commit comments

Comments
 (0)