Skip to content

Commit 22569bb

Browse files
committed
still doesn't work
1 parent 39ebd9c commit 22569bb

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
@@ -812,7 +812,7 @@ export type UseQueryOptions<Query extends FunctionReference<"query">> = (
812812
| (QueryOptions<Query> & { skip?: false })
813813
| {
814814
query: Query;
815-
args?: NoInfer<unknown>;
815+
args?: unknown;
816816
skip: true;
817817
}
818818
) & {

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)