Facundo
Facundo
CCConvex Community
Created by patamembrillo on 11/28/2024 in #support-community
Convex + Tanstack Start + Clerk
Thank for getting back to me! Yeah I'll likely have to change stacks as well. I was able to get the userId from clerk in server function and then changed my query to use a userId argument. But you loose the reactivity as it uses the convexhttpclient like the following: const getUserUploadsFn = createServerFn({ method: 'GET' }).handler(async () => { const { userId } = await getAuth(getWebRequest()) if (!userId) { throw redirect({ to: '/' }) } const convex = new ConvexHttpClient(process.env.VITE_CONVEX_URL!) const uploads = await convex.query(api.uploads.listUserUploadsWithId, { userId }) return { uploads, userId } }) export const Route = createFileRoute('/library')({ component: Library, beforeLoad: () => getUserUploadsFn(), loader: ({ context }) => { return { uploads: context.uploads, userId: context.userId } }, }) export function Library() { const { uploads } = Route.useLoaderData()
6 replies
CCConvex Community
Created by patamembrillo on 11/28/2024 in #support-community
Convex + Tanstack Start + Clerk
I’m running into the same issue. Were you able to find a way around it?
6 replies
CDCloudflare Developers
Created by mrpro on 11/22/2024 in #general-help
Endless of [Cloudflare]: Automatic SSL/TLS Upgrades
Same here please help!
19 replies