MCPcopy Create free account

hub / github.com/react-hook-form/react-hook-form / functions

Functions578 in github.com/react-hook-form/react-hook-form

↓ 226 callersFunctionuseForm
( props: UseFormProps<TFieldValues, TContext, TTransformedValues> = {}, )
src/useForm.ts:44
↓ 174 callersFunctionregister
(name, options = {})
src/logic/createFormControl.ts:1266
↓ 142 callersFunctionhandleSubmit
(onValid, onInvalid)
src/logic/createFormControl.ts:1395
↓ 77 callersFunctionuseFieldArray
( props: UseFieldArrayProps< TFieldValues, TFieldArrayName, TKeyName, TTransformedValues >
src/useFieldArray.ts:81
↓ 47 callersFunctionappend
( value: | Partial<FieldArray<TFieldValues, TFieldArrayName>> | Partial<FieldArray<TFieldValue
src/useFieldArray.ts:163
↓ 44 callersFunctionsetValue
( name, value, options = {}, )
src/logic/createFormControl.ts:789
↓ 39 callersFunctionreset
(formValues, keepStateOptions)
src/logic/createFormControl.ts:1635
↓ 37 callersFunctionwatch
( name?: | FieldPath<TFieldValues> | ReadonlyArray<FieldPath<TFieldValues>> | WatchObser
src/logic/createFormControl.ts:1144
↓ 31 callersFunctionuseWatch
( props?: UseWatchProps<TFieldValues>, )
src/useWatch.ts:256
↓ 30 callersFunctionuseController
( props: UseControllerProps<TFieldValues, TName, TTransformedValues>, )
src/useController.ts:50
↓ 28 callersFunctionuseFormState
( props?: UseFormStateProps<TFieldValues, TTransformedValues>, )
src/useFormState.ts:42
↓ 26 callersFunctionremove
(index?: number | number[])
src/useFieldArray.ts:207
↓ 20 callersFunctiongetValues
( fieldNames?: | FieldPath<TFieldValues> | ReadonlyArray<FieldPath<TFieldValues>>, config?
src/logic/createFormControl.ts:1065
↓ 20 callersFunctiontrigger
(name, options = {})
src/logic/createFormControl.ts:1009
↓ 19 callersFunctioninsert
( data: T[], index: number, value?: T | T[], )
src/utils/insert.ts:9
↓ 16 callersFunctioncloneObject
(data: T)
src/utils/cloneObject.ts:5
↓ 16 callersFunctionprepend
( value: | Partial<FieldArray<TFieldValues, TFieldArrayName>> | Partial<FieldArray<TFieldValue
src/useFieldArray.ts:187
↓ 15 callersFunctionsetError
(name, error, options)
src/logic/createFormControl.ts:1122
↓ 14 callersFunctiondeepEqual
( object1: any, object2: any, visited = new WeakSet(), )
src/utils/deepEqual.ts:5
↓ 14 callersFunctionuseFormContext
()
src/useFormContext.tsx:44
↓ 13 callersFunctionswap
(indexA: number, indexB: number)
src/useFieldArray.ts:244
↓ 13 callersFunctionupdate
( index: number, value: FieldArray<TFieldValues, TFieldArrayName>, )
src/useFieldArray.ts:280
↓ 12 callersFunctionmove
(from: number, to: number)
src/useFieldArray.ts:262
↓ 12 callersFunctiononChange
(event)
src/logic/createFormControl.ts:845
↓ 12 callersFunctionunset
(object: any, path: string | (string | number)[])
src/utils/unset.ts:28
↓ 10 callersFunctionunregister
(name, options = {})
src/logic/createFormControl.ts:1216
↓ 9 callersFunctionclearErrors
(name)
src/logic/createFormControl.ts:1100
↓ 7 callersFunctiongetFieldState
( name, formState, )
src/logic/createFormControl.ts:1089
↓ 6 callersFunction_setValid
(shouldUpdateValid?: boolean)
src/logic/createFormControl.ts:196
↓ 6 callersFunction_updateIsValidating
(names?: string[], isValidating?: boolean)
src/logic/createFormControl.ts:225
↓ 5 callersFunction_getDirty
(name, data)
src/logic/createFormControl.ts:652
↓ 5 callersFunctioniterateFieldsByAction
( fields: FieldRefs, action: (ref: Ref, name: string) => 1 | undefined | void, fieldsNames?: Set<Interna
src/logic/iterateFieldsByAction.ts:5
↓ 5 callersFunctionreplace
( value: | Partial<FieldArray<TFieldValues, TFieldArrayName>> | Partial<FieldArray<TFieldValue
src/useFieldArray.ts:310
↓ 5 callersFunctionrerender
()
app/src/controller.tsx:62
↓ 5 callersFunctionsetFocus
(name, options = {})
src/logic/createFormControl.ts:1643
↓ 5 callersFunctionsleep
(data: T, ms: number)
app/src/defaultValuesAsync.tsx:4
↓ 4 callersFunction_runSchema
(name?: InternalFieldName[])
src/logic/createFormControl.ts:464
↓ 4 callersFunctionexecuteBuiltInValidation
({ fields, onlyCheckValid, name, eventType, context = { valid: true, runRootVa
src/logic/createFormControl.ts:537
↓ 4 callersFunctionexit
* Prints a failure reason and exits the process with status code 1. * @param message {string}
scripts/apiExtractor.js:123
↓ 4 callersFunctionsetValues
( name: T, value: K, options: U, )
src/logic/createFormControl.ts:763
↓ 4 callersFunctionsubscribe
(observer: Observer<T>)
src/utils/createSubject.ts:26
↓ 4 callersFunctiontest
()
src/__tests__/isPlainObject.test.ts:6
↓ 4 callersFunctionuseFormControlContext
()
src/useFormControlContext.ts:15
↓ 3 callersFunctioncreateFormControl
( props: UseFormProps<TFieldValues, TContext, TTransformedValues> = {}, )
src/logic/createFormControl.ts:107
↓ 3 callersFunctiongetDirtyFields
( data: T, formValues: T, dirtyFieldsFromValues?: Record< Extract<keyof T, string>, ReturnType<t
src/logic/getDirtyFields.ts:27
↓ 3 callersFunctiongetFieldValue
(_f: Field['_f'])
src/logic/getFieldValue.ts:12
↓ 3 callersFunctionisObjectType
(value: unknown)
src/utils/isObject.ts:4
↓ 3 callersFunctiononSubmit
(data: FormInputs)
src/__tests__/type.test.tsx:445
↓ 3 callersFunctiononSubmit
(values: unknown)
src/__tests__/useForm/register.test.tsx:738
↓ 3 callersFunctionsetFieldValue
( name: InternalFieldName, value: SetFieldValue<TFieldValues>, options: SetValueConfig = {}, )
src/logic/createFormControl.ts:689
↓ 3 callersFunctiontoAvatar
(id)
scripts/README/Link.js:5
↓ 2 callersFunction_updateDirtyFields
(name: InternalFieldName)
src/logic/createFormControl.ts:248
↓ 2 callersFunctioncreateRollupConfig
(options, callback)
scripts/rollup/createRollupConfig.js:11
↓ 2 callersFunctionextractFormValues
(fieldsState: T, formValues: K)
src/utils/extractFormValues.ts:3
↓ 2 callersFunctionflatten
(obj: FieldValues)
src/utils/flatten.ts:5
↓ 2 callersFunctiongetValidateError
( result: ValidateResult, ref: Ref, type = 'validate', )
src/logic/getValidateError.ts:5
↓ 2 callersFunctionisTraversable
(value: any)
src/logic/getDirtyFields.ts:8
↓ 2 callersFunctionresetField
(name, options = {})
src/logic/createFormControl.ts:1460
↓ 2 callersFunctionschemaErrorLookup
( errors: FieldErrors<T>, _fields: FieldValues, name: string, )
src/logic/schemaErrorLookup.ts:5
↓ 2 callersFunctiontoPreviews
(type)
scripts/README/Generators.js:12
↓ 2 callersFunctiontoProfile
(username)
scripts/README/Link.js:1
↓ 2 callersFunctionupdateTouchAndDirty
( name: InternalFieldName, fieldValue: unknown, isBlurEvent?: boolean, shouldDirty?: boolean,
src/logic/createFormControl.ts:356
↓ 2 callersFunctionvalidateForm
({ name, eventType, }: { name: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | undefined;
src/logic/createFormControl.ts:496
↓ 1 callersFunctionFormStateSubscribe
({ control, disabled, exact, name, render, }: FormStateSubscribeProps<TFieldValues, TTransformedValu
src/formStateSubscribe.tsx:17
↓ 1 callersFunctionWatch
( props: WatchProps< TFieldName, TFieldValues, TContext, TTransformedValues, TComputeVal
src/watch.tsx:35
↓ 1 callersFunction_focusError
()
src/logic/createFormControl.ts:1367
↓ 1 callersFunction_getWatch
( names, defaultValue, isGlobal, )
src/logic/createFormControl.ts:657
↓ 1 callersFunction_reset
( formValues, keepStateOptions = {}, )
src/logic/createFormControl.ts:1492
↓ 1 callersFunction_setDisabledField
({ disabled, name, })
src/logic/createFormControl.ts:1248
↓ 1 callersFunction_subscribe
(props)
src/logic/createFormControl.ts:1170
↓ 1 callersFunction_updateIsFieldValueUpdated
(fieldValue: unknown)
src/logic/createFormControl.ts:851
↓ 1 callersFunctionaddChild
()
src/__tests__/useFieldArray.test.tsx:933
↓ 1 callersFunctionaddItem
(index: number)
src/__tests__/useForm/watch.test.tsx:600
↓ 1 callersFunctionbaseGet
(object: any, updatePath: (string | number)[])
src/utils/unset.ts:8
↓ 1 callersFunctioncheckLineEndings
* Checks the line endings of the API extractor report. * Exits with status code 1 if the line endings don't match the * API Extractor config. * @pa
scripts/apiExtractor.js:63
↓ 1 callersFunctioncheckNoErrorsAndWarnings
* Runs the API Extractor. * Exits with status code 1 if API Extractor reports any warnings or errors. * @param config {ExtractorConfig}
scripts/apiExtractor.js:44
↓ 1 callersFunctioncheckReportMatchesApi
* Runs the API Extractor to check if the API report matches the API. * Exits with status code 1 if it does not match. * @param config {ExtractorConf
scripts/apiExtractor.js:21
↓ 1 callersFunctionclearTel
(tel)
examples/V6/customMaskedInputWithController.tsx:7
↓ 1 callersFunctionclearTel
(tel)
examples/V7/customMaskedInputWithController.tsx:7
↓ 1 callersFunctioncomment_unknown
(type)
scripts/README/Insert.js:9
↓ 1 callersFunctionconvertTimeToDate
(time: unknown)
src/logic/validateField.ts:145
↓ 1 callersFunctioncreateArrayWithNumbers
(length)
examples/V6/FieldArray.tsx:5
↓ 1 callersFunctioncreateArrayWithNumbers
(length)
examples/V7/FieldArray.tsx:5
↓ 1 callersFunctioncreateResolver
()
src/__tests__/useForm/resolver.test.tsx:314
↓ 1 callersFunctiondebounce
(callback: T)
src/logic/createFormControl.ts:190
↓ 1 callersFunctiondeepMerge
(target: T, source: U)
src/utils/deepMerge.ts:4
↓ 1 callersFunctionevaluateRegStatus
(vals, currentState)
examples/V6/persistInputOnUnmount.tsx:7
↓ 1 callersFunctionexecuteSchemaAndUpdateState
(names?: InternalFieldName[])
src/logic/createFormControl.ts:478
↓ 1 callersFunctionfakeResolver
(schema: boolean)
src/__tests__/useForm/resolver.test.tsx:70
↓ 1 callersFunctionfirstInput
()
cypress/e2e/delayError.cy.ts:5
↓ 1 callersFunctionfirstInputError
()
cypress/e2e/delayError.cy.ts:6
↓ 1 callersFunctiongetDefaultValue
()
src/__tests__/useWatch.test.tsx:1611
↓ 1 callersFunctiongetMinMaxMessage
( exceedMax: boolean, maxLengthMessage: Message, minLengthMessage: Message, maxType: MaxType =
src/logic/validateField.ts:83
↓ 1 callersFunctiongetProjects
()
scripts/jest/jest.config.js:43
↓ 1 callersFunctiongetValidateMock
( timeout: number, )
src/__tests__/controller.test.tsx:272
↓ 1 callersFunctionhandleDuplicate
(index: number)
src/__tests__/useFieldArray.test.tsx:4388
↓ 1 callersFunctioninsertInto
(template)
scripts/README/Insert.js:21
↓ 1 callersFunctionisEmptyArray
(obj: unknown[])
src/utils/unset.ts:19
↓ 1 callersFunctionlastInput
()
cypress/e2e/delayError.cy.ts:7
↓ 1 callersFunctionlastInputError
()
cypress/e2e/delayError.cy.ts:8
next →1–100 of 578, ranked by callers