Using outer and inner context together [trpc]
Hi guys, I am experiencing troubles during implementing both - inner and outer context in one appRouter. Let me show you an example below:
I want to use two contexts alternately, when I'm calling some stuff on client-side I want to use outer context, but I also want to use getServerSideProps to send some other queries, that are context unrelated - here I want to use inner context.
Is there a way to combine both contexts on createNextApiHandler (appRouter), or I need to create two 'apis' - one for inner context and the other one for outer context?
0 Replies