Alex / KATT 🐱
Alex / KATT 🐱
TtRPC
Created by jaridmargolin on 8/26/2024 in #❓-help
Need more control over error handling
legit bugs usually don't stay open for more than a few days or a week
6 replies
TtRPC
Created by jaridmargolin on 8/26/2024 in #❓-help
Need more control over error handling
we discovered that malformed URIs result in 500 errors (which in turn hit our error reporter).
that sounds like a bug, open an issue 🙏
Ideally, we would be able to define the behavior of getTrpcErrorFromUnknown and implement logic that checks instanceof URIError and creates a BAD_REQUEST error rather than an INTERNAL_SERVER_ERROR.
that might be a good fix!
6 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
open for suggestions and PRs
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
oh, next.js overrides them? i didn't experience that last time i tried it
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
24 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
i'm very excited to follow your progress 😄
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
btw, did you upgrade to typescript 5.5 already? it might've improved and fixed that sort of issue
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
i'll be away next week but excited to see what you come up with
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
try it if you are able to spend a few hours on it 😅
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
yeah xtrpc works well but it kills jump to definition etc
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
but unsure if you'd still get that error when you then create the trpc client etc 😐
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
that'd be the thing that imports every individual router and creates the actual app router
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
since trpc-api's .d.ts should mainly be referencing stuff in other packages it shouldn't crash on that "exceeds the maximum length"-error, but we'll see 😅
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
yeah
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
i hope there's a good way to get around this
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
base in this example would have the initTRPC()-call and the context
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
users and posts users the base
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
trpc-api would just use posts and users
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
like - packages/trpc-base - packages/trpc-posts - packages/trpc-users - packages/trpc-api
57 replies
TtRPC
Created by Gabriel on 7/10/2024 in #❓-help
How to improve typescript performance?
nono
57 replies