Skip to content

Commit 873e46d

Browse files
committed
added missing argument on createOperationFetcherFnNodes
1 parent 11f3865 commit 873e46d

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
@@ -203,6 +203,7 @@ export const generateReactQueryFunctions = async (
203203
url: route,
204204
verb,
205205
name: operationFetcherFnName,
206+
validateResponseWithZod: config.zodFiles !== undefined,
206207
printNodes,
207208
}),
208209
...createOperationQueryFnNodes({

0 commit comments

Comments
 (0)