From c918c71fb9402e2bd842cdf0fc14f8bd3eb0b414 Mon Sep 17 00:00:00 2001 From: Nikita Zolotykh <58661343+bocembocem@users.noreply.github.com> Date: Mon, 10 Jun 2024 09:35:54 +0200 Subject: [PATCH] feat: add is equal check for final form (#203) --- src/lib/core/components/Form/hooks/useIntegrationFF.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/core/components/Form/hooks/useIntegrationFF.tsx b/src/lib/core/components/Form/hooks/useIntegrationFF.tsx index 96baf92d..6b5938ef 100644 --- a/src/lib/core/components/Form/hooks/useIntegrationFF.tsx +++ b/src/lib/core/components/Form/hooks/useIntegrationFF.tsx @@ -2,6 +2,7 @@ import React from 'react'; import debounce from 'lodash/debounce'; import get from 'lodash/get'; +import isEqual from 'lodash/isEqual'; import isFunction from 'lodash/isFunction'; import values from 'lodash/values'; import {Field as FinalFormField, useForm} from 'react-final-form'; @@ -37,6 +38,7 @@ export const useIntegrationFF = (store: DynamicFieldStore, withoutDebounce?: boo return error; }, + isEqual, }; return ;