Laurens Lavaert
Laurens Lavaert
Explore posts from servers
TtRPC
Created by Laurens Lavaert on 6/24/2024 in #❓-help
TRPCClientError prior to the request being sent (v11, App Router)
enabled: (op) => env.NODE_ENV === "development" || (op.direction === "down" && op.result instanceof Error), ☝️ env. contained server-only stuff but that didnt propagate the error properly when using it in loggerLink FUUUUUCK ME
3 replies
TtRPC
Created by Laurens Lavaert on 6/24/2024 in #❓-help
TRPCClientError prior to the request being sent (v11, App Router)
Setup was mainly inspired upon how Julius has configured create-t3-turbo
3 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
Do you just compile the types cuz I esbuild the whole router and import that one xd
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
True true
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
bruhhh why did react query change isLoading to something else
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
But now I got a lot more headroom
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
to each have seperate compilation
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
I put it off cuz I was gonne split the routers in seperate packages
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
Because I was so close to the limit of 1.5mb all the time
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
Hmm now I'm keen to set it up
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
Might no longer have to compile my types gahd damn
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
omfg
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
DTS src/server/api/root/index.d.mts 140.75 KB
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
Ait imma check out the resolved types
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
Is it ready to be used in prd tho :p
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
No description
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
So down to 754.55 KB 50% improvement 👀
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
No description
31 replies
TtRPC
Created by Laurens Lavaert on 3/15/2024 in #❓-help
Typescript optimisation
So I managed to get the ctx to match my predefined type by doing explicitly typing the returns of all the createCtx functions
31 replies