Skip to content

Commit c1964a1

Browse files
committed
still doesn't work
1 parent e4561bd commit c1964a1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

npm-packages/convex/src/react/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ export type UseQueryOptions<Query extends FunctionReference<"query">> = (
653653
| (QueryOptions<Query> & { skip?: false })
654654
| {
655655
query: Query;
656-
args?: NoInfer<unknown>;
656+
args?: unknown;
657657
skip: true;
658658
}
659659
) & {

npm-packages/convex/src/react/use_query.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ describe("useQuery types", () => {
8686
args: { _arg: "asdf" },
8787
});
8888

89+
const userId = undefined as string | undefined;
90+
8991
useQuery({
9092
query: api.module.args,
91-
args: { anyarg: 0 },
92-
skip: true,
93+
args: { _arg: userId },
94+
skip: !userId,
9395
});
9496

9597
useQuery({

0 commit comments

Comments
 (0)