MCPcopy
hub / github.com/thesysdev/openui / useOpenUI

Function useOpenUI

packages/react-lang/src/context.ts:70–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 * Access the full OpenUI context. Throws if used outside a <Renderer />.
69 */
70export function useOpenUI(): OpenUIContextValue {
71 const ctx = useContext(OpenUIContext);
72 if (!ctx) {
73 throw new Error("useOpenUI must be used within a <Renderer /> component.");
74 }
75 return ctx;
76}
77
78/**
79 * Get the renderNode function for rendering nested component values.

Callers 8

RenderNodeFunction · 0.90
useStateFieldFunction · 0.90
useRenderNodeFunction · 0.70
useTriggerActionFunction · 0.70
useIsStreamingFunction · 0.70
useIsQueryLoadingFunction · 0.70
useGetFieldValueFunction · 0.70
useSetFieldValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected