nickparks
TTCTheo's Typesafe Cult
•Created by nickparks on 9/13/2023 in #questions
TRPC / Prisma findMany not showing properties in auto completion
*map
4 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 9/13/2023 in #questions
TRPC / Prisma findMany not showing properties in auto completion
Damn sorry youre absolutely right, my miss not pushing to a mao
4 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 4/28/2023 in #questions
Any ideas why TRPC doesnt find the mutation?
Damn, I think I found it! Diving into the console log - kept showing 404s (even on new routes I added to my TPRC file). Made me wonder whether 'activity' (as I called it) was a reserved namespace of sorts - seems thats exactly it. Assumed typescript/vscode wouldve complained if it was. Working now with a different name. thanks for the help
16 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 4/28/2023 in #questions
Any ideas why TRPC doesnt find the mutation?
thanks, yeah let me try this 🙂 agree, seems odd cause its as i always call other mutations.
16 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 4/28/2023 in #questions
Any ideas why TRPC doesnt find the mutation?
unfortunately seems to still hit the same error 😦
16 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 4/28/2023 in #questions
Any ideas why TRPC doesnt find the mutation?
and
Using SQLServer (planetscale)
16 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 4/28/2023 in #questions
Any ideas why TRPC doesnt find the mutation?
Sure, for now its pretty simple
16 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 2/13/2023 in #questions
Best practice for protecting page / not letting anything run before redirect
this is cool, thank you. i must admit, i dont understand mst of it, I think I still struggle on the getserversideprops stuff. however, the middleware in your answer works perfectly for me 🙂
13 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 2/13/2023 in #questions
Best practice for protecting page / not letting anything run before redirect
Thanks, getAll here on the TRPC procedure is a protected procedure. However, probably I do not understand where the authentication is happening, I feel like even with it being a protected procedure, the client is still loading more than it should?
13 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 2/13/2023 in #questions
Using dynamic Param slug in TRPC query
2 hours spent staring - dunno why I didn’t try just cast haha
10 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 2/13/2023 in #questions
Using dynamic Param slug in TRPC query
Love the simplicity of just casting it to a string. Will try both! Thanks folks
10 replies
TTCTheo's Typesafe Cult
•Created by nickparks on 2/8/2023 in #questions
Handling undefined errors on TRPC dependent queries
Thanks! That’s super helpful and exactly what I was after. Solves my error for now but will take a look at the video - agree it didn’t make sense conceptually why I had to do two calls.
5 replies