@overmap-ai/core 1.0.35-fix-token-refresh-loop.1 → 1.0.35-fix-token-refresh-loop.2
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.
|
@@ -10225,7 +10225,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10225
10225
|
PatchField.displayName = "PatchField";
|
|
10226
10226
|
const PatchFormProvider = React.memo(
|
|
10227
10227
|
React.forwardRef((props, ref) => {
|
|
10228
|
-
const { children, schema, values, onPatch, onError, ...rest } = props;
|
|
10228
|
+
const { children, schema, values, onPatch, onError, requiresDiff = true, ...rest } = props;
|
|
10229
10229
|
const initialValues2 = React.useMemo(() => initialFormValues(schema.fields, values), [schema.fields, values]);
|
|
10230
10230
|
const handlePatch = React.useCallback(
|
|
10231
10231
|
(values2) => {
|
|
@@ -10236,11 +10236,11 @@ var __publicField = (obj, key, value) => {
|
|
|
10236
10236
|
diff[key] = value;
|
|
10237
10237
|
}
|
|
10238
10238
|
}
|
|
10239
|
-
if (!hasKeys(diff))
|
|
10239
|
+
if (requiresDiff && !hasKeys(diff))
|
|
10240
10240
|
return;
|
|
10241
10241
|
onPatch(diff);
|
|
10242
10242
|
},
|
|
10243
|
-
[initialValues2, onPatch]
|
|
10243
|
+
[initialValues2, onPatch, requiresDiff]
|
|
10244
10244
|
);
|
|
10245
10245
|
const validate = React.useCallback(
|
|
10246
10246
|
(form) => {
|