Errors Using Queries in Client
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.


