jepcd
jepcd
Explore posts from servers
CDCloudflare Developers
Created by Pranshu Maheshwari on 6/25/2024 in #queues
Appointments
publishing to a queue over http would be great
3 replies
TtRPC
Created by jepcd on 6/5/2024 in #❓-help
Using trpcState with Remix
^ if anyone else finds it useful
3 replies
TtRPC
Created by jepcd on 6/5/2024 in #❓-help
Using trpcState with Remix
Was able to get it to work by following teh react query docs for remix prefetching
3 replies
TTCTheo's Typesafe Cult
Created by jepcd on 7/7/2023 in #questions
Does react 18 `cache()` cache across requests?
I'm not sure which way would be better, my use case currently is with next-auth in RSCs, I'm using getServerSession in a lot of server components, and without the cache it makes 2 db queries each time I use it This is what I have now, which works well
export const getCurrentSession = cache(async (): Promise<Session | null> => {
return await getServerSession(authOptions);
});
export const getCurrentSession = cache(async (): Promise<Session | null> => {
return await getServerSession(authOptions);
});
5 replies