DaRealPheyeeD
Convex Community2y ago
2 replies
DaRealPheyee

Convex Queries In Server Components

I have a route ("/users/[userId]") and i want to fetch user info from the database by using the Convex query hook "useQuery" and also supply the data through a global state using zustand to child routes. However, i can only use the Convex hook in a client component.

How do you suggest i implement this because i dont want to make the whole layout a client component.
Was this page helpful?