@overmap-ai/core 1.0.28-integrate-forms.1 → 1.0.28-integrate-forms.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9643,21 +9643,8 @@ var __publicField = (obj, key, value) => {
9643
9643
  );
9644
9644
  });
9645
9645
  const PatchField = React.memo((props) => {
9646
- const { name, render } = props;
9647
- const { submitForm } = formik.useFormikContext();
9648
- const [fieldProps, _meta, helpers] = formik.useField(name);
9649
- return React.useMemo(() => {
9650
- const setValue = (value) => {
9651
- void helpers.setValue(value, false);
9652
- };
9653
- return render({
9654
- value: fieldProps.value,
9655
- setValue,
9656
- patchValue: () => {
9657
- void submitForm();
9658
- }
9659
- });
9660
- }, [submitForm, helpers, fieldProps.value, render]);
9646
+ console.log("PatchField props:", props);
9647
+ return null;
9661
9648
  });
9662
9649
  PatchField.displayName = "PatchField";
9663
9650
  const PatchFormProvider = React.memo(