Tribe
Tribe
Explore posts from servers
TtRPC
Created by Tribe on 3/20/2024 in #❓-help
Getting the type of context
Thank you for diving this deep into this, just looking into what you provided now. So since in some of my middlewares I am adding new properties to the context, I dont need the incoming context to match the outgoing so I wanna go with the second Overwrite option I believe
10 replies
TtRPC
Created by Tribe on 3/20/2024 in #❓-help
Getting the type of context
Much appreciated. I’ll see if that works just for curiosity sake but you’re probably right, might be safer to just open a ticket.
10 replies
TtRPC
Created by Tribe on 3/20/2024 in #❓-help
Getting the type of context
I am basically looking to create a type that gives me the shape of the context after it is extended by the middleware. I am sure it’s possible considering the context is properly typed within mutations and queries. I have just been failing at creating it. So in the example you linked I want a type that tells me the shape of the context including the user that was added into it by the middleware.
10 replies
TtRPC
Created by Tribe on 1/10/2024 in #❓-help
Dynamic Server Usage Error from RSC calls
will do, thanks
7 replies
TtRPC
Created by Tribe on 1/10/2024 in #❓-help
Dynamic Server Usage Error from RSC calls
open it on t3 repo?
7 replies