oRPC DynamicLink
Installation
SKILL.md
DynamicLink
DynamicLink lets you dynamically choose between different oRPC links based on your client context.
Example
import { createORPCClient, DynamicLink } from '@orpc/client'
interface ClientContext {
cache?: boolean
}
const cacheLink = new RPCLink({
url: 'https://cache.example.com/rpc',
})