alexmartos
alexmartos
TTCTheo's Typesafe Cult
Created by Ali on 11/17/2023 in #questions
Audio ist not working on mobile
What browser have you tried with?
7 replies
TTCTheo's Typesafe Cult
Created by cadams on 11/3/2023 in #questions
Do you manually create Zod schemas for your Prisma models?
Does not seem that Drizzle have that built in but as a plug-in: https://orm.drizzle.team/docs/zodiac
11 replies
TTCTheo's Typesafe Cult
Created by GoldStrikeArch on 11/3/2023 in #questions
Zod validation with react-hook-form
So you could use this solution for both all and first
12 replies
TTCTheo's Typesafe Cult
Created by GoldStrikeArch on 11/3/2023 in #questions
Zod validation with react-hook-form
If I remember correctly, you always get the first error as normal under ‘error.message’ if you have multiple errors those are under ‘error.types’
12 replies
TTCTheo's Typesafe Cult
Created by GoldStrikeArch on 11/3/2023 in #questions
Zod validation with react-hook-form
Try commenting out criteriaMode and it shold only warn about 1 error
12 replies
TTCTheo's Typesafe Cult
Created by GoldStrikeArch on 11/3/2023 in #questions
Zod validation with react-hook-form
12 replies
TTCTheo's Typesafe Cult
Created by GoldStrikeArch on 11/3/2023 in #questions
Zod validation with react-hook-form
Found this PR https://github.com/react-hook-form/react-hook-form/pull/750 Try using criteriaMode instead
12 replies
TTCTheo's Typesafe Cult
Created by NinjaBunny on 10/26/2023 in #questions
WebSocket on Server Component
Yes, WebSockets are for clients only, you could use like pub/sub on server but the client has to listen to the server somehow
21 replies
TTCTheo's Typesafe Cult
Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
Yeah, dosent seem like it unfortunally.
15 replies
TTCTheo's Typesafe Cult
Created by BaBa on 10/25/2023 in #questions
useQuery enabled depending on login state
If it helped please mark my solution to help others 🙂
8 replies
TTCTheo's Typesafe Cult
Created by BaBa on 10/25/2023 in #questions
useQuery enabled depending on login state
Oh, okay. Yeah for those that is a good solution
8 replies
TTCTheo's Typesafe Cult
Created by BaBa on 10/25/2023 in #questions
useQuery enabled depending on login state
And make sure the server checks auth
8 replies
TTCTheo's Typesafe Cult
Created by BaBa on 10/25/2023 in #questions
useQuery enabled depending on login state
That could be a solution. Are there any components or pages that do some action that only logged in users should see, then you could check if user is logged in and only render depending on that, that way you do not have to check if logged in on useQuery
8 replies
TTCTheo's Typesafe Cult
Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
Yeah, just curios. What type of headers do you have to set?
15 replies
TTCTheo's Typesafe Cult
Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
Yeah, I tried it out now. I forgot Route handlers does not provide the res object and header() cannot set headers. I also tried returning a NextResponse. I tried with NextResponse but could not get it working either, don't know if their is a workaround.
15 replies
TTCTheo's Typesafe Cult
Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
Oh the response. You would have to run ‘options.res.headers.set()’. Res🙂
15 replies
TTCTheo's Typesafe Cult
Created by West side ⁉ on 10/24/2023 in #questions
Accessing headers from TRPC and modifying them
You can modify it with ‘headers.set()’
15 replies
TTCTheo's Typesafe Cult
Created by Giuliopime on 10/17/2023 in #questions
Border that transitions trough row of elements
How would the span know where to transition too (without JS)?
10 replies
TTCTheo's Typesafe Cult
Created by Giuliopime on 10/17/2023 in #questions
Border that transitions trough row of elements
Hmm… interesting, I mean the border has to be its own element for it to be able to animate like that and doing it without JS, I don’t know. Interesting…
10 replies
TTCTheo's Typesafe Cult
Created by Panziewanz on 10/16/2023 in #questions
Server page being recognized as a Client component
What version of next do you have?
19 replies