Skip to content

Instantly share code, notes, and snippets.

@MadaShindeInai
Last active September 6, 2023 12:14
Show Gist options
  • Save MadaShindeInai/9b3e59bf3fb65c20c41c6682adfd0e03 to your computer and use it in GitHub Desktop.
Save MadaShindeInai/9b3e59bf3fb65c20c41c6682adfd0e03 to your computer and use it in GitHub Desktop.
tRPC: from journeyman to master

tRPC: from journeyman to master

What it tRPC?

tPRC is a way for the server and the client to interop and share data and type definitions. Was written to make the relationship between the client and the server as simple as possible similar to graphql. Screenshot 2023-09-06 at 14 13 46

The path to understanding tRPC (with T3 template in my case):

  1. tRPC intro: https://youtu.be/2LYM8gf184U
  2. tRPC overview: https://nehalist.io/trpc-review/
  3. Create T3 app and try to implement some basic stuff with CSL, SSR and SSG using tRPC react-query, gssp, gsp and try switching ssr option from true to false in createTRPCNext. Reach the stage of despair and an attack of the impostor syndrome. This will greatly increase the value of the next steps.
  4. tRPC T3 tips (cors + ptimistic req inside): https://create.t3.gg/en/usage/trpc
  5. tRPC deep-but-important dive: https://youtu.be/x4mu-jOiA0Q
  6. tRPC deep-but-important dive 2: https://youtu.be/G2ZzmgShHgQ
  7. tRPC best-practice repo: https://github.com/c-ehrlich/you-dont-need-callers
  8. Some words about ssr:true/false: trpc/trpc#596 (comment)
  9. When and why we should set "ssr: true" in createTRPCNext: ?????
  10. tRPC is not gRPC: https://www.youtube.com/watch?v=jd5JwXoDXFo&ab_channel=Theo-t3%E2%80%A4gg

// TBC

Screenshot 2023-02-18 at 13 17 08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment