MCPcopy
hub / github.com/react-hook-form/react-hook-form / useFormControlContext

Function useFormControlContext

src/useFormControlContext.ts:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 * @internal Internal hook to access only control from context.
14 */
15export const useFormControlContext = <
16 TFieldValues extends FieldValues,
17 TContext = any,
18 TTransformedValues = TFieldValues,
19>(): Control<TFieldValues, TContext, TTransformedValues> =>
20 React.useContext(HookFormControlContext) as Control<
21 TFieldValues,
22 TContext,
23 TTransformedValues
24 >;

Callers 4

useFieldArrayFunction · 0.90
useControllerFunction · 0.90
useWatchFunction · 0.90
useFormStateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…