fix: useField incorrect initialization of errorMessage on update (#7756)
This commit is contained in:
@@ -156,7 +156,7 @@ export const useField = <T,>(options: Options): FieldType<T> => {
|
|||||||
valueToValidate = getDataByPath(path)
|
valueToValidate = getDataByPath(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
let errorMessage: string | undefined
|
let errorMessage: string | undefined = prevErrorMessage.current
|
||||||
let valid: boolean | string = prevValid.current
|
let valid: boolean | string = prevValid.current
|
||||||
|
|
||||||
const isValid =
|
const isValid =
|
||||||
|
|||||||
Reference in New Issue
Block a user