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

Function updateMounted

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

Source from the content-addressed store, hash-verified

209 });
210
211 const updateMounted = (name: InternalFieldName, value: boolean) => {
212 const field: Field = get(control._fields, name);
213
214 if (field && field._f) {
215 field._f.mount = value;
216 }
217 };
218
219 updateMounted(name, true);
220

Callers 1

useControllerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected