(props)
| 1377 | }; |
| 1378 | |
| 1379 | const subscribe: UseFormSubscribe<TFieldValues> = (props) => { |
| 1380 | _state.mount = true; |
| 1381 | _proxySubscribeFormState = { |
| 1382 | ..._proxySubscribeFormState, |
| 1383 | ...props.formState, |
| 1384 | }; |
| 1385 | return _subscribe({ |
| 1386 | ...props, |
| 1387 | formState: { |
| 1388 | ...defaultProxyFormState, |
| 1389 | ...props.formState, |
| 1390 | }, |
| 1391 | }); |
| 1392 | }; |
| 1393 | |
| 1394 | const unregister: UseFormUnregister<TFieldValues> = (name, options = {}) => { |
| 1395 | for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…