From 0eb8e6f6f886c8342ef09bccb2e2adecc4898f68 Mon Sep 17 00:00:00 2001 From: Michael Chang Date: Sat, 20 May 2023 01:09:52 -0700 Subject: [PATCH] Fixed isEqual register initalization --- src/useField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useField.js b/src/useField.js index c6ffa68..d7180a9 100644 --- a/src/useField.js +++ b/src/useField.js @@ -85,7 +85,7 @@ function useField( defaultValue, getValidator: () => configRef.current.validate, initialValue, - isEqual: (a, b) => (configRef.current.isEqual || defaultIsEqual)(a, b), + isEqual: configRef.current.isEqual, silent, validateFields, });