scinorandex
TTCTheo's Typesafe Cult
•Created by murflaren on 5/18/2024 in #questions
Steps to use graphql endpoint on react client
4 replies
TTCTheo's Typesafe Cult
•Created by murflaren on 5/18/2024 in #questions
Steps to use graphql endpoint on react client
I tried this just this morning!
Graphql codegen seems very easy to setup with either apollo or urql
4 replies
TTCTheo's Typesafe Cult
•Created by Lopen on 3/24/2023 in #questions
vscode power hungry
Disabling them improved vscode performance overall for me and it might solve your things too (i use tig instead of GitLens now)
6 replies
TTCTheo's Typesafe Cult
•Created by Lopen on 3/24/2023 in #questions
vscode power hungry
stuff like gitlens and eslint on wsl are really hungry for me
6 replies
TTCTheo's Typesafe Cult
•Created by Lopen on 3/24/2023 in #questions
vscode power hungry
You may want to look into disabling some of your extensions
6 replies
TTCTheo's Typesafe Cult
•Created by Mordi on 3/24/2023 in #questions
Am I using useState incorrectly here?
@Mordi hope this helps
8 replies
TTCTheo's Typesafe Cult
•Created by Mordi on 3/24/2023 in #questions
Am I using useState incorrectly here?
the variable passed by react into the callback function is always up to date
8 replies
TTCTheo's Typesafe Cult
•Created by Mordi on 3/24/2023 in #questions
Am I using useState incorrectly here?
setPresignedUrl((e) => [...e, urls]);
setUploadId((e) => [...e, res.uploadId]);
8 replies
TTCTheo's Typesafe Cult
•Created by Mordi on 3/24/2023 in #questions
Am I using useState incorrectly here?
the variable that the setState function is mapped to only updates when it's rerendered
8 replies
TTCTheo's Typesafe Cult
•Created by Mordi on 3/24/2023 in #questions
Am I using useState incorrectly here?
You want to use a callback inside the setState
8 replies
TTCTheo's Typesafe Cult
•Created by NinjaBunny on 3/23/2023 in #questions
When should I not use tRPC
i have no money or mode of payment but I have access to a friend's esxi cluster so if I can self host an s3 compatible thing
50 replies
TTCTheo's Typesafe Cult
•Created by NinjaBunny on 3/23/2023 in #questions
When should I not use tRPC
can I self host it on a esxi container with 5TB storage attached to it
50 replies
TTCTheo's Typesafe Cult
•Created by NinjaBunny on 3/23/2023 in #questions
When should I not use tRPC
fuck
50 replies
TTCTheo's Typesafe Cult
•Created by NinjaBunny on 3/23/2023 in #questions
When should I not use tRPC
omw to check if s3 costs money
50 replies
TTCTheo's Typesafe Cult
•Created by NinjaBunny on 3/23/2023 in #questions
When should I not use tRPC
Anything that abuses typescript generics to the extent that trpc does will eventually reach issues with typechecking, so your tsserver will be constantly in a loading state especially if it's resolving prisma types too
50 replies
TTCTheo's Typesafe Cult
•Created by NinjaBunny on 3/23/2023 in #questions
When should I not use tRPC
This is one of the problems I solved in my trpc like thing, and currently they're working on supporting file uploads too using multipart uploads
50 replies
TTCTheo's Typesafe Cult
•Created by McKamyk on 1/11/2023 in #questions
Create T3, appDir, tRPC
It's not that hard to setup trpc and prisma on top of create-next-app
14 replies