Huperniketes
Huperniketes
TtRPC
Created by Huperniketes on 7/8/2023 in #❓-help
Are GET and POST the only HTTP verbs supported?
.
3 replies
TtRPC
Created by Grifn on 7/10/2023 in #❓-help
tRPC + App directory + SSR - current state?
As written in the tRPC home page,
tRPC allows you to easily build & consume fully typesafe APIs without schemas or code generation.
tRPC allows you to easily build & consume fully typesafe APIs without schemas or code generation.
It only manages the creation and use of a web app’s APIs. So it sounds like it should work okay, as the biggest difference between the pages- and the app-routers rendering is where the server's page rendering code is situated, and not where the API code is. For SSR in the app-router, it's in the server component where you would use tRPC’s router.createCaller() interface for the APIs. In the pages-router, this code would be in getServerSideProps().
11 replies