Atoastercrumb
Atoastercrumb
TTCTheo's Typesafe Cult
Created by SharpieMaster on 9/25/2023 in #questions
t3 app router when?
To add to your point about embracing the rewrite, I personally this tends to be the moment that I start considering how things are made swappable. For example are you putting your server work in a separate function so that when you are done with the smallest possible responsibility in trpc (handling the validation and then calling out to your server function). On the react side of things I would consider how my components are interacting with trpc. Are they doing it directly or can you hand off to a custom hook. This strategy might start to then mitigate some of the pain of refactoring to server actions at a later date since you’ve reduced your code’s exposure to the trpc dependency.
24 replies
TTCTheo's Typesafe Cult
Created by ok ok ok on 6/23/2023 in #questions
Should I use postman? I am trying to start using APIs in my personal projects.
I'd put a vote in for Insomnia as my go to. I find it's UI a little less fussy than Postman. Postman has a lot of extra features around collections and managment of them that I really don't find myself using.
6 replies