Skip to content

Commit 1a26474

Browse files
committed
added missing argument on createOperationFetcherFnNodes
1 parent 141112b commit 1a26474

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

plugins/typescript/src/generators/generateReactQueryComponents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export const generateReactQueryComponents = async (
202202
url: route,
203203
verb,
204204
name: operationFetcherFnName,
205+
validateResponseWithZod: config.zodFiles !== undefined,
205206
printNodes,
206207
}),
207208
...(component === "useQuery"

plugins/typescript/src/generators/generateReactQueryFunctions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export const generateReactQueryFunctions = async (
206206
url: route,
207207
verb,
208208
name: operationFetcherFnName,
209+
validateResponseWithZod: config.zodFiles !== undefined,
209210
printNodes,
210211
}),
211212
...createOperationQueryFnNodes({

0 commit comments

Comments
 (0)