fix(WarehouseTransfer).

This commit is contained in:
a.bouhuolia
2022-03-20 16:43:49 +02:00
parent 89b28903fa
commit 29fbcf1f1c
17 changed files with 129 additions and 193 deletions

View File

@@ -1,7 +1,9 @@
import { useFormikContext } from 'formik';
import { useDeepCompareEffect } from 'hooks/utils';
export function FormikObserver({ onChange, values }) {
export function FormikObserver({ onChange }) {
const { values } = useFormikContext();
useDeepCompareEffect(() => {
onChange(values);
}, [values]);