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

Function _resetDefaultValues

src/logic/createFormControl.ts:1674–1681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1672 };
1673
1674 const _resetDefaultValues = () =>
1675 isFunction(_options.defaultValues) &&
1676 (_options.defaultValues as Function)().then((values: TFieldValues) => {
1677 reset(values, _options.resetOptions);
1678 _subjects.state.next({
1679 isLoading: false,
1680 });
1681 });
1682
1683 const methods = {
1684 control: {

Callers

nothing calls this directly

Calls 1

resetFunction · 0.85

Tested by

no test coverage detected