@trpcio 10.0.0 is now officially out! 🚀🚀
See the blog post below 👇 👇 👇
Alex / KATT 🐱
8,638 posts
- This week I've been working on a declarative isomorphic permission library. On the backend we create Prisma `WhereInput`s & on the frontend we get rules like this hopefully will OSS it soon
00:00 - TIL that this is correct syntax and that `finally` runs after the return of the function #junior4lyfe
- Heyheheyheyhey!!!👋 I got something exciting to share! We just released the version 10 beta of tRPC! 🚀 Go have a look! 👇👇 (also, the website has gotten a real facelift recently 👀)
- One of my favorite little ts utils ``` export type Maybe<T> = T | undefined | null; ```
- Did ya know you probably should be using `interface` rather than `type` where possible? There's a section about this in the official wiki on ts performance
- me in 2021 after a 5 year long monogamous relationship with react
- This is what I'd do. The way you typecast an unsafe object doesn't really matter, just ensure it's the right type instead.TypeScript decision: How should a function that calls fetch be typed? Options: 1. Type the return statement 2. Type the function's signature 3. Type both Poll in the next tweet 👇 #typescript
- My mental model of how React renders my app is broken (again)
- tRPC will likely require TypeScript 4.9 pretty soon, does that satisfy you?
- Spent some time hacking with @trpcio + @nextjs 13 - 🚀 Use tRPC in RSC &/or in client - ♾ Made infinite scrolling with the first page being RSC SSR'd - 🔒 Hacked next-auth to work It's ugly & code is quite messy, don't judge github.com/trpc/next-13 / rsc.trpc.io










