defrex
defrex2mo ago

Authenticated wrapper is laggy and breaks SSR

I'm using Convex with Clerk. The requirement to wrap all client code in the Authenticated component completely breaks SSR, even though the user is already authenticated during the server rendering process. Past that, it also adds a noticeable amount of lag (>100ms) to the page load. Both of these compromises feels pretty unacceptable to me. Is there any way to work around this? I'm really loving convex and would hate to loose all the reactive db greatness on a technicality.
4 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
whizzy
whizzy2mo ago
have similar problem
erquhart
erquhart5w ago
This thread is on Nextjs, but the basic concepts for Authentication w/ Convex and SSR apply to TanStack as well: https://discord.com/channels/1019350475847499849/1396536659415400512
whizzy
whizzy5w ago
cool

Did you find this page helpful?