Teodorant Master Of Nonsense
Teodorant Master Of Nonsense
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Teodorant Master Of Nonsense on 5/19/2024 in #questions
How to stop prisma from updating the same row via 3 different update functions at the same time?
I am using a webhook architecture to synchronize my DB with another central DB, when I do a thing such as creating a new row in the central DB, it triggers several creation and update events at the same time, how do I stop prisma from having a race condition where 3 different http requests are trying to mutate the same row?
2 replies
TTCTheo's Typesafe Cult
Created by Teodorant Master Of Nonsense on 5/14/2024 in #questions
Tailwind classes aren't applying in dev and sometimes in production when login via credentials
No description
13 replies
TTCTheo's Typesafe Cult
Created by Teodorant Master Of Nonsense on 3/29/2024 in #questions
How do I migrate from Next-Auth to Clerk Auth?
I recently started a project with with all options enabled with create T3 stack command, how do I migrate to Clerk without messing up TRPC?
5 replies
TTCTheo's Typesafe Cult
Created by Teodorant Master Of Nonsense on 3/26/2024 in #questions
TRPC mutation is giving me an error when trying to implement it
I have this code const mutation = api.auth.addaccount.useMutation(); const handleLogin = async (email: string, password: string) => { await mutation({ email: email, password: password }); }; usemutation is underlined with wavy red and has this error when I hover over it "Property 'useMutation' does not exist on type 'DecorateProcedure<MutationProcedure<{ input: { email: string; password: string; }; output: string; }>>'.ts(2339) "
2 replies
TtRPC
Created by Teodorant Master Of Nonsense on 3/26/2024 in #❓-help
Cannot use usemutation in my nextjs/t3 project
I have this code const mutation = api.auth.addaccount.useMutation(); const handleLogin = async (email: string, password: string) => { await mutation({ email: email, password: password }); }; usemutation is underlined with wavy red and has this error when I hover over it "Property 'useMutation' does not exist on type 'DecorateProcedure<MutationProcedure<{ input: { email: string; password: string; }; output: string; }>>'.ts(2339) "
2 replies
TtRPC
Created by Teodorant Master Of Nonsense on 2/24/2024 in #❓-help
In my NEXTJS app can read value next-auth session in localhost ,but not when deployed to Vercel
I have several procedures in my TRPC router (https://github.com/Teodorant1/nighthawk_repair/blob/master/server/index.ts), it seems to be bricking in the ones where I am awaiting the session const session = (await getServerSession(authOptions)) as Session; seems to be the line of code that is bricking it on Vercel
5 replies
TTCTheo's Typesafe Cult
Created by Teodorant Master Of Nonsense on 2/6/2024 in #questions
How do I setup credentials based auth with the app I created with T3 CLI?
No description
9 replies