@overmap-ai/core 1.0.35-fix-token-refresh-loop.4 → 1.0.35-fix-token-refresh-loop.5
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.
package/dist/overmap-core.js
CHANGED
|
@@ -10276,8 +10276,9 @@ const PatchFormProvider = memo(
|
|
|
10276
10276
|
validateOnBlur: false,
|
|
10277
10277
|
validateOnChange: false
|
|
10278
10278
|
});
|
|
10279
|
-
const
|
|
10279
|
+
const handleChange = useCallback(() => {
|
|
10280
10280
|
if (onDirtyChange) {
|
|
10281
|
+
console.debug("ON CHANGE");
|
|
10281
10282
|
const diff = getDiff(formik.values);
|
|
10282
10283
|
if (hasKeys(diff)) {
|
|
10283
10284
|
onDirtyChange(true);
|
|
@@ -10290,7 +10291,7 @@ const PatchFormProvider = memo(
|
|
|
10290
10291
|
resetForm({ values: initialValues2, errors: {} });
|
|
10291
10292
|
}
|
|
10292
10293
|
}, [errors, initialValues2, resetForm]);
|
|
10293
|
-
return /* @__PURE__ */ jsx(FormikProvider, { value: formik, children: /* @__PURE__ */ jsx("form", { ...rest, ref, onSubmit: formik.handleSubmit,
|
|
10294
|
+
return /* @__PURE__ */ jsx(FormikProvider, { value: formik, children: /* @__PURE__ */ jsx("form", { ...rest, ref, onSubmit: formik.handleSubmit, onChange: handleChange, children }) });
|
|
10294
10295
|
})
|
|
10295
10296
|
);
|
|
10296
10297
|
const typeBadge$1 = "_typeBadge_an5ff_1";
|