MCPcopy Index your code
hub / github.com/react/react / bindArgs

Function bindArgs

packages/react-server/src/ReactFlightActionServer.js:32–44  ·  view source on GitHub ↗
(fn: any, args: any)

Source from the content-addressed store, hash-verified

30type ServerReferenceId = any;
31
32function bindArgs(fn: any, args: any) {
33 if (args.length > MAX_BOUND_ARGS) {
34 throw new Error(
35 'Server Function has too many bound arguments. Received ' +
36 args.length +
37 ' but the limit is ' +
38 MAX_BOUND_ARGS +
39 '.',
40 );
41 }
42
43 return fn.bind.apply(fn, [null].concat(args));
44}
45
46function loadServerReference<T>(
47 bundlerConfig: ServerManifest,

Callers 1

loadServerReferenceFunction · 0.85

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected