MCPcopy Index your code
hub / github.com/react-hook-form/react-hook-form / updateMounted

Function updateMounted

src/useController.ts:219–225  ·  view source on GitHub ↗
(name: InternalFieldName, value: boolean)

Source from the content-addressed store, hash-verified

217 });
218
219 const updateMounted = (name: InternalFieldName, value: boolean) => {
220 const field: Field = get(control._fields, name);
221
222 if (field && field._f) {
223 field._f.mount = value;
224 }
225 };
226
227 updateMounted(name, true);
228

Callers 1

useControllerFunction · 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…