Cody
TTCTheo's Typesafe Cult
•Created by Huijiro on 7/16/2024 in #questions
Trying to convince boss to switch from Angular to something else, he only accepts React.
Dashboard apps are one of those cases where SPA's often deliver the best UX, it's really dependent on what kind of stuff you're doing though. Vite is the go to for React SPA's, or Remix SPA if you want to try something a bit newer
10 replies
TTCTheo's Typesafe Cult
•Created by Kar olis on 7/7/2024 in #questions
Azure blob storage
That’s interesting, have you tried explicitly passing the header through into the options? With .upload it’s the third parameter after the content length, even though you say it should be getting set itself, curious to see if setting it there makes it work
8 replies
TTCTheo's Typesafe Cult
•Created by Cody on 3/11/2023 in #questions
ESLint rule for not passing type into useState?
I am certainly team implicit types! However, I often like to pass through an OR NULL type so I can use nullish coalescing to check if state has been set (ex numbers when 0 is acceptable)
Maybe I should just be passing the type only when needing it rather than declaring for all states
4 replies
TTCTheo's Typesafe Cult
•Created by Eylon on 3/3/2023 in #questions
Why is my prisma model typed as any?
Weird one, might be a new bug since mine literally just happened now on a new repo
24 replies
TTCTheo's Typesafe Cult
•Created by Eylon on 3/3/2023 in #questions
Why is my prisma model typed as any?
I had this just happen to me, seemed to be a bug, restarting VSCode and TS server fixed it for me
24 replies
TTCTheo's Typesafe Cult
•Created by Cody on 2/21/2023 in #questions
T3 app/Vercel/Planetscale Slow fetches
Hey all, appreciate all the responses. Biggest culprit was the Vercel functions region, made a huge difference. Working on making some of my stuff SSR now too. So much helpful information, thankyou!
8 replies
TTCTheo's Typesafe Cult
•Created by Cody on 1/25/2023 in #questions
Get Vercel Server IP
Next question: how do I find my IP of a Railway server?
9 replies
TTCTheo's Typesafe Cult
•Created by Cody on 1/25/2023 in #questions
Get Vercel Server IP
Yeah, it just states that you should wildcard IP access if you can
9 replies
TTCTheo's Typesafe Cult
•Created by Cody on 1/25/2023 in #questions
Get Vercel Server IP
Yeah that’s what I’ll end up doing, just wanted to make sure I wasn’t missing anything. Cheers for the help!
9 replies
TTCTheo's Typesafe Cult
•Created by Cody on 1/11/2023 in #questions
Vercel failing build on empty arrow function in context
I'd want to fix the lint error ideally as I don't seem to understand why this is a problem. How does one normally initialise a setState function in context? Clearly Im not meant to do it this way, would just want to know what the correct pattern is.
6 replies
TTCTheo's Typesafe Cult
•Created by exodus on 1/8/2023 in #questions
NextJS for SPA
Would be overkill imo. React w/Vite would probably suit better
3 replies
TTCTheo's Typesafe Cult
•Created by Cody on 1/7/2023 in #questions
How to not pass first argument into useQuery
Great, worked a treat. Thanks so much guys!
4 replies
TTCTheo's Typesafe Cult
•Created by Cody on 12/30/2022 in #questions
How to add extra user DB fields into context
Knew the solution would be simple. The t3 docs are great, need to refer to them more. Thankyou so much!
6 replies
TTCTheo's Typesafe Cult
•Created by Cody on 12/28/2022 in #questions
How to use useQuery...?
No problem! Appreciate the response
11 replies
TTCTheo's Typesafe Cult
•Created by Cody on 12/28/2022 in #questions
How to use useQuery...?
Ugh, for some reason I thought only state could be used in a dep array. Like a thought, simple solution. Thankyou so much!
11 replies
TTCTheo's Typesafe Cult
•Created by Cody on 12/24/2022 in #questions
Prisma allowing empty DB fields
I'll give it a shot in prod db and see what happens
10 replies
TTCTheo's Typesafe Cult
•Created by Cody on 12/24/2022 in #questions
Prisma allowing empty DB fields
Just using default sqlite for dev, haven't tested on deployment which is using Planetscale
10 replies
TTCTheo's Typesafe Cult
•Created by Cody on 12/24/2022 in #questions
Prisma allowing empty DB fields
I can use do a minimum length on the TRPC endpoint with z.string().min(3) but would rather have the validation at the DB level itself
10 replies