how to proxy a router
hey im building a chrome extension that has two adapters .. one is for communicating with the api server (lets call it an apiRouter) and another to communicate between the different parts(worlds) of the chrome extension (specifically the background script and a content script).
since apiRouter is only available for the background script , but the extensionRouter is available for all the other parts
I'd like the
my naive implementation was create a new proxy method for the apiClient
then adding
but it looks like the proxy is being swaped by anoter implementation by tRPC.
what am I missing , is there a better way to tackle this?
since apiRouter is only available for the background script , but the extensionRouter is available for all the other parts
I'd like the
extensionRouter to proxy the apiRouter , in such a way that a query() from the api AppRouter would be available natively on the extensionRouter my naive implementation was create a new proxy method for the apiClient
then adding
proxiedTrpcClient on the AppRouterbut it looks like the proxy is being swaped by anoter implementation by tRPC.
what am I missing , is there a better way to tackle this?