Skip to content

Commit a6268b4

Browse files
committed
fix: fix error in output for useQuery generation
1 parent 66b13e3 commit a6268b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generateHooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export const createHook = ({
200200
? `use${componentName}Query.baseKey()`
201201
: `[...use${componentName}Query.baseKey(), params]`;
202202

203-
const props = emptyParams ? `props?:` : `{ options = {}, ...params }:`;
203+
const props = emptyParams ? `props?` : `{ options = {}, ...params }`;
204204
const options = emptyParams ? `...props?.options:` : `...options`;
205205

206206
const createQuery = () => `

0 commit comments

Comments
 (0)