MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / _setFormState

Function _setFormState

src/logic/createFormControl.ts:1665–1672  ·  view source on GitHub ↗
(
    updatedFormState: Partial<FormState<TFieldValues>>,
  )

Source from the content-addressed store, hash-verified

1663 };
1664
1665 const _setFormState = (
1666 updatedFormState: Partial<FormState<TFieldValues>>,
1667 ) => {
1668 _formState = {
1669 ..._formState,
1670 ...updatedFormState,
1671 };
1672 };
1673
1674 const _resetDefaultValues = () =>
1675 isFunction(_options.defaultValues) &&

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected