MCPcopy
hub / github.com/TanStack/router / fn

Function fn

packages/start-server-core/src/createSsrRpc.ts:12–19  ·  view source on GitHub ↗
(...args: Array<any>)

Source from the content-addressed store, hash-verified

10 const serverFnMeta: ClientFnMeta = { id: functionId }
11
12 const fn = async (...args: Array<any>): Promise<any> => {
13 // If an importer is provided, use it directly (server-to-server call within the SSR environment)
14 // Otherwise, fall back to manifest lookup (client-to-server call, server functions that are only referenced on the server or if the provider environment is not SSR)
15 const serverFn = importer
16 ? await importer()
17 : await getServerFnById(functionId)
18 return serverFn(...args)
19 }
20
21 return Object.assign(fn, {
22 url,

Callers 15

RouterCoreClass · 0.50
buildMethod · 0.50
lazyFnFunction · 0.50
throttleFunction · 0.50
batchFunction · 0.50
uniqByFunction · 0.50
useTransitionerSetupFunction · 0.50
usePreviousFunction · 0.50
_customBlockerFnFunction · 0.50
route.test.tsxFile · 0.50
uniqByFunction · 0.50
usePreviousFunction · 0.50

Calls 1

getServerFnByIdFunction · 0.85

Tested by

no test coverage detected