kevin.hill.fortunabmc
kevin.hill.fortunabmc
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
I continued on this path and now have slim, composable routers that can be defined per app with just what they need 🙂
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
That was it!!! I went ahead and exported t from @org/api so that I can use that instance inside the app to create the final router and it finally works!! You're a great sounding board 🤣
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
I think since the app I am building also creates a t to use in the app, but now there are 2 ts, one from inside @org/api and then the other from the app? Is that what is causing it not to transform?
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
I think I am running into a new issue.... Since @org/api created t with initTRPC to make my auth middleware to make my protectedProcedure ok... I imported that into @org/asana to be able to make asanaProcedure and this appeared to work... But mutations are failing because a Date is going through "naked" and failing to parse as JSON. I know you are going to say superjson and I have it everywhere it should be....
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
or maybe we need something with Asana and Zoom, or Salesforce and Dropbox. tRPC has made it so easy to modularize the different clients into procedures, protect it all with Clerk and a middleware. It's so nice to be able to do all of that with type safety
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
I use NextJS and tRPC and, for example, make a simple app that ties Azure and Asana together to be able to have a drop-down of users, populated by tRPC and Azure, and then it can create tasks in Asana using info from MsGraph
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
I am using tRPC with to rapidly build internal apps for my team. We have lots of services we use, but no good birds-eye-view of all our users. I work for https://www.fortunabmc.com/
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
It has some local procedures, and imported procedures
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
25 replies
TtRPC
Created by kevin.hill.fortunabmc on 5/25/2023 in #❓-help
Modular Router Thoughts
Instead of trimming, I did like you suggested. I pulled all the scoped routers into their service specific package, then removed all the router() calls and export them as procedures.
25 replies
TtRPC
Created by NEO on 5/21/2023 in #❓-help
Cannot access 't' before initialization
16 replies
TtRPC
Created by NEO on 5/21/2023 in #❓-help
Cannot access 't' before initialization
asanaProcedure, salesforceProcedure, etc..
16 replies
TtRPC
Created by NEO on 5/21/2023 in #❓-help
Cannot access 't' before initialization
I used it to have a bunch of different, service-specific, scoped procedures that have the proper clients attached
16 replies
TtRPC
Created by NEO on 5/21/2023 in #❓-help
Cannot access 't' before initialization
I posted my own discussion here if you want to check it out https://discord.com/channels/867764511159091230/1111426709519093840
16 replies
TtRPC
Created by NEO on 5/21/2023 in #❓-help
Cannot access 't' before initialization
I have too, so I am happy to share what I've learned
16 replies
TtRPC
Created by NEO on 5/21/2023 in #❓-help
Cannot access 't' before initialization
16 replies
TtRPC
Created by NEO on 5/21/2023 in #❓-help
Cannot access 't' before initialization
and create folders to house scoped procedures
16 replies