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

Function updateMounted

src/useFieldArray.ts:482–487  ·  view source on GitHub ↗
(name: InternalFieldName, value: boolean)

Source from the content-addressed store, hash-verified

480 control._options.shouldUnregister || shouldUnregister
481 );
482 const updateMounted = (name: InternalFieldName, value: boolean) => {
483 const field: Field = get(control._fields, name);
484 if (field && field._f) {
485 field._f.mount = value;
486 }
487 };
488
489 if (_actioned.current && shouldKeepFieldArrayValues) {
490 control._subjects.state.next({

Callers 1

useFieldArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…