SparkS
tRPC17mo ago
3 replies
Spark

calling tRPC procedure from custom link

what is the best way to call a procedure from a custom link? I see in https://github.com/pyncz/trpc-refresh-token-link they are using a helper client. I tried the proxy client approach with await utils.client.auth.refresh.mutate(tokens), but getting Error: Unable to find tRPC Context. Did you forget to wrap your App inside withTRPC HoC?.
GitHub
🔃 Refresh token link for tRPC client. Contribute to pyncz/trpc-refresh-token-link development by creating an account on GitHub.
GitHub - pyncz/trpc-refresh-token-link: 🔃 Refresh token link for tR...
Was this page helpful?