spaghet
spaghet
Explore posts from servers
TtRPC
Created by spaghet on 8/16/2024 in #❓-help
Need help with performance
It’d be nice to not have to do this
5 replies
TtRPC
Created by spaghet on 8/16/2024 in #❓-help
Need help with performance
We already have this out of the box with disableSourceOfProjectReferenceRedirect
5 replies
PPrisma
Created by Nick on 3/25/2024 in #help-and-questions
Frequent constraint failed on id when using @id @default(autoincrement())
I don't think anyone will be able to help you with this @Nick . This does not sound like a Prisma problem.
5 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
to anyone who is seeing this in the future, enable disableSourceOfProjectReferenceRedirect and call it a day. you'll lose out on direct project references but at least now you'll be able to do your development because intellisense and autocomplete work
18 replies
TtRPC
Created by Mohammed Anas on 1/9/2024 in #❓-help
client side Validation with ZOD
However the server uses the schema to validate the payload as well, and rejects it if it’s invalid. Which can happen if you don’t use client side validation.
12 replies
TtRPC
Created by Mohammed Anas on 1/9/2024 in #❓-help
client side Validation with ZOD
It takes care of the validations out of the box (for a CSR app)
12 replies
TtRPC
Created by Mohammed Anas on 1/9/2024 in #❓-help
client side Validation with ZOD
You can share Zod schema with the client and use it for your validations. We do that with react hook form
12 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
i'm thinking about just switching us to Typebox. have you tried other validation libraries?
18 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
just kidding, it's also Zod. both Zod and trpc-openapi completely tank our performance
18 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
we were able to narrow it down. it looks like the issue is with trpc-openapi. seems like a massive bug. 200% performance degradation (from 400ms to 1200ms)
18 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
We're also using Zod. It looks like Zod has performance issues
18 replies
TtRPC
Created by zrilman on 6/8/2023 in #❓-help
VS Code becomes unresponsive
@zrilman did you ever fix this?
8 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
it looks like this is a known issue and there's even a library to help with this: https://twitter.com/whizzaf/status/1683998923382304768
18 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
18 replies
TtRPC
Created by Laurens Lavaert on 10/10/2023 in #❓-help
Decreasing autocomplete performance
We're having this same issue OP. Did you ever figure this out?
3 replies
TtRPC
Created by spaghet on 1/9/2024 in #❓-help
We're having some serious Intellisense performance issues with v10
Some of our routes use tRPC OpenAPI btw, have not confirmed if that's the source of the slowdown. We also tried adding type annotations to the procedures but there was little to no performance improvement.
18 replies