@mcurros2/microm 1.1.92-0 → 1.1.93-0
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/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47880,7 +47880,6 @@ function $637861954d3d6876$export$bf63b1212bff1393(props) {
|
|
|
47880
47880
|
]);
|
|
47881
47881
|
const [entityForm, setEntityForm] = (0, $b4te3$react.useState)(null);
|
|
47882
47882
|
const entityRef = (0, $b4te3$react.useRef)(null);
|
|
47883
|
-
const entity = entityRef.current;
|
|
47884
47883
|
// MMC: note that rest properties are not used in the useEffect dependency array as using ...rest will create a new object on every render
|
|
47885
47884
|
(0, $b4te3$react.useEffect)(()=>{
|
|
47886
47885
|
if (!entityRef.current) entityRef.current = entityConstructor(client);
|
|
@@ -47902,7 +47901,7 @@ function $637861954d3d6876$export$bf63b1212bff1393(props) {
|
|
|
47902
47901
|
(0, $b4te3$react.useEffect)(()=>{
|
|
47903
47902
|
const handleBeforeUnload = ()=>$637861954d3d6876$var$__awaiter(this, void 0, void 0, function*() {
|
|
47904
47903
|
try {
|
|
47905
|
-
if (saveBeforeRemoteNavigation &&
|
|
47904
|
+
if (saveBeforeRemoteNavigation && entityRef.current) yield entityRef.current.API.editData();
|
|
47906
47905
|
} catch (ex) {
|
|
47907
47906
|
console.error("SaveBeforeRemoteNavigation", ex);
|
|
47908
47907
|
}
|
|
@@ -47918,7 +47917,7 @@ function $637861954d3d6876$export$bf63b1212bff1393(props) {
|
|
|
47918
47917
|
(0, $b4te3$react.useEffect)(()=>{
|
|
47919
47918
|
const handleLocalNavigation = ()=>$637861954d3d6876$var$__awaiter(this, void 0, void 0, function*() {
|
|
47920
47919
|
try {
|
|
47921
|
-
if (saveBeforeLocalNavigation &&
|
|
47920
|
+
if (saveBeforeLocalNavigation && entityRef.current && prevLocationRef.current !== window.location.hash) yield entityRef.current.API.editData();
|
|
47922
47921
|
} catch (ex) {
|
|
47923
47922
|
console.error("SaveBeforeLocalNavigation", ex);
|
|
47924
47923
|
}
|