Thomas
Thomas
TTCTheo's Typesafe Cult
Created by Thomas on 8/27/2024 in #questions
why does this procedure get called twice, once with cookies and once without
export const userRouter = createTRPCRouter({
get: publicProcedure.query(async ({ ctx }) => {
const ssid = cookies().get("sessionId")?.value;
export const userRouter = createTRPCRouter({
get: publicProcedure.query(async ({ ctx }) => {
const ssid = cookies().get("sessionId")?.value;
Currently running in to some issues with SSR and this procedure, from my understanding (which I'm guessing is flawed) in any case where the procedures are called, be it SSR or client-side, cookies should be available to be fetched.
1 replies