Yiannis
Yiannis
Explore posts from servers
TtRPC
Created by Yiannis on 7/28/2024 in #❓-help
Is having multiple tRPC instances in a single monorepo package an anti pattern?
Hi there! We are currently refactoring a large monorepo and we are torn on deciding the best approach in terms of trpc. We used to have two monorepos we are now merging and it seems to make sense to now have a single package for trpc. What would be the best approach for this? So far we tried making one big “appRouter” but since we are emitting type deceleration files for our internal packages for performance we came across an issue merging the two trpc.router instances (where each one has a lot of objects that satisfy TRPCRouterRecords) so we decided to try making two trpc instances in the same package each with their own contexts and app routers. Would that be considered an anti pattern and if if so what would be an optimal approach in a situation such as this? (For the record we will be merging the two instances eventually but want to do this incrementally) Many thanks in advance for your time and for making trpc so awesome!!
2 replies
DTDrizzle Team
Created by Yiannis on 5/30/2023 in #help
Cannot call onConflictDoNothing() or on onConflctDoUpdate() on select
Hello guys, this is probably right in front of me, but when I insert at the end of values I cannot find .onConflict, just onDuplicateKeyUpdate. Many thanks!
1 replies
TTCTheo's Typesafe Cult
Created by Yiannis on 2/17/2023 in #questions
Any way to share auth between a t3 app and a native iOS and android apps?
Hey guys, this is probably a noob question, but let my try and clarify the situation: Context: I have been building a web app using the t3 stack for a while now and I love it. Now I’m thinking about mobile, and I’m leaning towards making native mobile apps (iOS and android, not react native/expo) Why?: I’m a new developer so I wanna get some round experience to see what I like the most so I can know what to really focus on. Also (and most importantly) I need some native sdks for some camera things I need both apps doing. The problem? The auth setup. I noticed julius has been working on a branch on the t3 turbo that uses next auth for authentication on expo but I don’t see how that would help me. I have found certain libraries that manage sessions on each platform, but I think I need an authentication server? I was looking at express with passport but before I dive into anything and start learning something new I thought maybe I could ask some people with more experience that could maybe send me down the right path. Many thanks!
5 replies