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

Function _getDirty

src/logic/createFormControl.ts:740–743  ·  view source on GitHub ↗
(name, data)

Source from the content-addressed store, hash-verified

738 };
739
740 const _getDirty: GetIsDirty = (name, data) =>
741 !_options.disabled &&
742 (name && data && set(_formValues, name, data),
743 !deepEqual(_state.mount ? _formValues : _defaultValues, _defaultValues));
744
745 const _getWatch: WatchInternal<TFieldValues> = (
746 names,

Callers 7

_setFieldArrayFunction · 0.85
updateValidAndValueFunction · 0.85
updateTouchAndDirtyFunction · 0.85
_setValueFunction · 0.85
unregisterFunction · 0.85
resetFieldFunction · 0.85
_resetFunction · 0.85

Calls 1

deepEqualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…