DaRealPheyeeD
Convex Community2y ago
11 replies
DaRealPheyee

Errors Using Queries in Client

Hello Support,

I am using the current query which fetches info about the currently logged user from the code snippet:

https://docs.convex.dev/auth/database-auth#mutations-for-upserting-and-deleting-users

However, because the useQuery is a hook, i am using the "use client" at the top of the file and i am getting an async error just like in the picture attached.

If i extract the query to its own component, i still get an error.

How can i fix this please?

Thanks in advance.
image.png
You might want to store user information directly in your Convex database, for
Storing Users in the Convex Database | Convex Developer Hub
Was this page helpful?