Skip to content

tRPC helpers

tRPC + createFetch

ts
import { createTRPCFetch, createTRPCFetchLink, createTRPCFetchClient } from 'tanstack-fetch/trpc'
HelperReturns
createTRPCFetch(api | options)typeof fetch for links
createTRPCFetchLink({ url, client?, batch? })terminating link
createTRPCFetchClient<AppRouter>(…)createTRPCClient wired to createFetch

Peers: @trpc/client (and @trpc/server types). Optional.

MIT Licensed · Created by Mohammad Garmabi · Not an official TanStack package