@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.
|
@@ -10272,8 +10272,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10272
10272
|
validateOnBlur: false,
|
|
10273
10273
|
validateOnChange: false
|
|
10274
10274
|
});
|
|
10275
|
-
const
|
|
10275
|
+
const handleChange = React.useCallback(() => {
|
|
10276
10276
|
if (onDirtyChange) {
|
|
10277
|
+
console.debug("ON CHANGE");
|
|
10277
10278
|
const diff = getDiff(formik$1.values);
|
|
10278
10279
|
if (hasKeys(diff)) {
|
|
10279
10280
|
onDirtyChange(true);
|
|
@@ -10286,7 +10287,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10286
10287
|
resetForm({ values: initialValues2, errors: {} });
|
|
10287
10288
|
}
|
|
10288
10289
|
}, [errors, initialValues2, resetForm]);
|
|
10289
|
-
return /* @__PURE__ */ jsxRuntime.jsx(formik.FormikProvider, { value: formik$1, children: /* @__PURE__ */ jsxRuntime.jsx("form", { ...rest, ref, onSubmit: formik$1.handleSubmit,
|
|
10290
|
+
return /* @__PURE__ */ jsxRuntime.jsx(formik.FormikProvider, { value: formik$1, children: /* @__PURE__ */ jsxRuntime.jsx("form", { ...rest, ref, onSubmit: formik$1.handleSubmit, onChange: handleChange, children }) });
|
|
10290
10291
|
})
|
|
10291
10292
|
);
|
|
10292
10293
|
const typeBadge$1 = "_typeBadge_an5ff_1";
|