@overmap-ai/core 1.0.35-fix-token-refresh-loop.4 → 1.0.35-fix-token-refresh-loop.6

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.
@@ -10255,7 +10255,6 @@ const PatchFormProvider = memo(
10255
10255
  );
10256
10256
  const validate = useCallback(
10257
10257
  (form) => {
10258
- console.debug("VALIDATING FORM:", form);
10259
10258
  const error2 = validateForm(schema, form);
10260
10259
  if (error2) {
10261
10260
  onError(error2);
@@ -10276,8 +10275,9 @@ const PatchFormProvider = memo(
10276
10275
  validateOnBlur: false,
10277
10276
  validateOnChange: false
10278
10277
  });
10279
- const handleBlur = useCallback(() => {
10278
+ const handleChange = useCallback(() => {
10280
10279
  if (onDirtyChange) {
10280
+ console.debug("ON CHANGE");
10281
10281
  const diff = getDiff(formik.values);
10282
10282
  if (hasKeys(diff)) {
10283
10283
  onDirtyChange(true);
@@ -10290,7 +10290,7 @@ const PatchFormProvider = memo(
10290
10290
  resetForm({ values: initialValues2, errors: {} });
10291
10291
  }
10292
10292
  }, [errors, initialValues2, resetForm]);
10293
- return /* @__PURE__ */ jsx(FormikProvider, { value: formik, children: /* @__PURE__ */ jsx("form", { ...rest, ref, onSubmit: formik.handleSubmit, onBlur: handleBlur, children }) });
10293
+ return /* @__PURE__ */ jsx(FormikProvider, { value: formik, children: /* @__PURE__ */ jsx("form", { ...rest, ref, onSubmit: formik.handleSubmit, onChange: handleChange, children }) });
10294
10294
  })
10295
10295
  );
10296
10296
  const typeBadge$1 = "_typeBadge_an5ff_1";