MCPcopy
hub / github.com/vantezzen/autoform / useAutoForm

Function useAutoForm

packages/react/src/context.ts:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6export const AutoFormProvider = AutoFormContext.Provider;
7
8export function useAutoForm() {
9 const context = useContext(AutoFormContext);
10 if (!context) {
11 throw new Error("useAutoForm must be used within an AutoFormProvider");
12 }
13 return context;
14}

Callers 3

ObjectFieldFunction · 0.90
ArrayFieldFunction · 0.90
AutoFormFieldFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected