Gorka Cesium
Gorka Cesium2y ago

Does convex in Next.js app router makes everything client side?

Since the Convex Provider is set in the root layout and contains "use client" i wonder if all the nested children will be also client side only. Thus losing all the SSR goodies
1 Reply
ballingt
ballingt2y ago
You can have server component children of a "use client"; component, so this does not make the whole tree client side. And maybe beside the point, but client side components can be SSRed! But Convex data fetching using hooks like useQuery is indeed client-side only: in a server component you'll need to use the Convex http client.

Did you find this page helpful?