blog/angular-trpc #12
Replies: 2 comments
-
Great article! tRCP seems to become an overarching hype in many frontend communities ... It's a bit off-topic: How would you go into production with tRCP?
Do you have any hints or experiences concerning putting tRCP in production? |
Beta Was this translation helpful? Give feedback.
-
I'd suggest using defer instead of fromPromise to wrap the trpc client calls. This way, the request to the API will be made once we actually subscribe to the Observable that is being created which is also what the Observables returned by the HttpClient would do. Example (hint: look at the logs): |
Beta Was this translation helpful? Give feedback.
-
blog/angular-trpc
Maximum type safety across the entire stack. How to setup a fullstack app with Angular and tRPC.
https://angularexperts.io/blog/angular-trpc
Beta Was this translation helpful? Give feedback.
All reactions