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

Function useSecretForm

packages/react/src/plugins/secret-form.tsx:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 });
91
92function useSecretForm(): SecretFormContextValue {
93 const ctx = use(SecretFormContext);
94 if (!ctx) {
95 // oxlint-disable-next-line executor/no-try-catch-or-throw, executor/no-error-constructor -- boundary: React context invariant surfaces programmer misuse during render
96 throw new Error("SecretForm parts must be rendered inside <SecretForm.Provider>");
97 }
98 return ctx;
99}
100
101// ---------------------------------------------------------------------------
102// Provider

Callers 5

NameFieldFunction · 0.85
IdFieldFunction · 0.85
ValueFieldFunction · 0.85
ErrorBannerFunction · 0.85
SubmitButtonFunction · 0.85

Calls 1

useFunction · 0.50

Tested by

no test coverage detected