MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ExecutorProvider

Function ExecutorProvider

packages/react/src/api/provider.tsx:36–55  ·  view source on GitHub ↗
(
  props: React.PropsWithChildren<{
    connection?: ExecutorServerConnectionInput;
    /**
     * The org scope the atom registry is keyed to — pass the console URL's org
     * slug on org-scoped hosts (cloud) so cached query results can never
     * survive an org change. Hosts without org scoping leave it unset.
     */
    scopeKey?: string | null;
    onHandledError?: FrontendErrorReporter;
  }>,
)

Source from the content-addressed store, hash-verified

34}
35
36export const ExecutorProvider = (
37 props: React.PropsWithChildren<{
38 connection?: ExecutorServerConnectionInput;
39 /**
40 * The org scope the atom registry is keyed to — pass the console URL's org
41 * slug on org-scoped hosts (cloud) so cached query results can never
42 * survive an org change. Hosts without org scoping leave it unset.
43 */
44 scopeKey?: string | null;
45 onHandledError?: FrontendErrorReporter;
46 }>,
47) => (
48 <FrontendErrorReporterProvider reporter={props.onHandledError}>
49 <ExecutorServerConnectionProvider connection={props.connection}>
50 <ExecutorRegistryProvider scopeKey={props.scopeKey}>
51 {props.children}
52 </ExecutorRegistryProvider>
53 </ExecutorServerConnectionProvider>
54 </FrontendErrorReporterProvider>
55);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected