Aland
Explore posts from serversTTCTheo's Typesafe Cult
•Created by West side ⁉ on 9/15/2023 in #questions
await TRPC's useQuery
Yes you can use trpc on the server, watch this video he explains how it's done.
https://www.youtube.com/watch?v=iHJuJdw1jEM
7 replies
TTCTheo's Typesafe Cult
•Created by ippo on 5/22/2023 in #questions
tRPC - Express - Next.js boilerplate
Yeah it's basically like that, you have to start both express and the next server separately.
7 replies
TTCTheo's Typesafe Cult
•Created by alan on 6/12/2023 in #questions
how to fix prisma query where 1=1
trpc uses it, i think they have no option
20 replies
TTCTheo's Typesafe Cult
•Created by alan on 6/12/2023 in #questions
how to fix prisma query where 1=1
man it hurts to see that performance hit, even with bun!
20 replies
TTCTheo's Typesafe Cult
•Created by alan on 6/12/2023 in #questions
how to fix prisma query where 1=1
Prisma is already considered "too slow" many people are jumping on drizzle so, i think adding a couple more packages won't be that bad 😅
20 replies
TTCTheo's Typesafe Cult
•Created by alan on 6/12/2023 in #questions
how to fix prisma query where 1=1
Well there are many the other weird behavior with null/undefined in JS
20 replies
TTCTheo's Typesafe Cult
•Created by alan on 6/12/2023 in #questions
how to fix prisma query where 1=1
Prisma should use Zod in their source code, I stopped trusting JS a long time ago...
20 replies
TTCTheo's Typesafe Cult
•Created by alan on 6/12/2023 in #questions
how to fix prisma query where 1=1
I think it's fixed now is it? But i don't understand why somebody would make that "design decision"
20 replies
TTCTheo's Typesafe Cult
•Created by LuisCode3 on 6/12/2023 in #questions
Next Auth unique Username with Social Login, best approach?
I would first remove white spaces from their name and set it as their username, so
Aland Sleman
> AlandSleman
If there is no name, then i would just generate a unique username.4 replies
TTCTheo's Typesafe Cult
•Created by cornflour on 6/13/2023 in #questions
Websocket with Next appdir/RSC?
If you don't want to use Websockets an alternative is HTTP streaming, user makes a GET request and connection is being kept open, the server can send new messages when it comes in via a POST request.
https://nextjs.org/docs/app/building-your-application/routing/router-handlers#streaming
9 replies
TTCTheo's Typesafe Cult
•Created by Thimo_o on 6/13/2023 in #questions
Nextauth add data to user that tries to sign up
Then when the user tries to login check if the team number or participant ID does exist.
3 replies
TTCTheo's Typesafe Cult
•Created by Thimo_o on 6/13/2023 in #questions
Nextauth add data to user that tries to sign up
I don't understand, why not assign a team number and a participant ID when the user signs up?
3 replies
TTCTheo's Typesafe Cult
•Created by ziN on 6/13/2023 in #questions
How to load all these images at once?
You are caching the images, i see in the dev tools no new fetch requests being made to load new images.
4 replies
TTCTheo's Typesafe Cult
•Created by test_1 on 6/13/2023 in #questions
Do any of you use .output in trpc procedures to validate server's returned data?
Yes it's very useful, it will guarantee that no sensitive data would be leaked.
2 replies
TTCTheo's Typesafe Cult
•Created by pradeep on 6/6/2023 in #questions
how to use getServerSession inside onclick server action
onClick can't be used on server components.
make the component a client component and then fetch the data onClick
5 replies
TTCTheo's Typesafe Cult
•Created by H on 6/7/2023 in #questions
blocked vercel account
Maybe try sending them an email or upgrade to PRO
7 replies
TTCTheo's Typesafe Cult
•Created by H on 6/7/2023 in #questions
blocked vercel account
I'm so close to reaching limits also
7 replies
TTCTheo's Typesafe Cult
•Created by H on 6/7/2023 in #questions
blocked vercel account
Oh! i should be careful
7 replies
TTCTheo's Typesafe Cult
•Created by Benja on 4/23/2023 in #questions
Layout management - T3 Stack - Next.js v13
Why not use Route groups
https://nextjs.org/docs/app/building-your-application/routing/route-groups
24 replies