@cimplify/sdk 0.46.2 → 0.46.3
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/react.js +8 -0
- package/dist/react.mjs +8 -0
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -760,6 +760,7 @@ function deriveView(base, ops) {
|
|
|
760
760
|
}
|
|
761
761
|
function persistBase(entry) {
|
|
762
762
|
if (typeof window === "undefined" || !window.localStorage) return;
|
|
763
|
+
if (!entry.isDemoMode) return;
|
|
763
764
|
if (entry.persistTimer) return;
|
|
764
765
|
entry.persistTimer = setTimeout(() => {
|
|
765
766
|
entry.persistTimer = null;
|
|
@@ -783,6 +784,13 @@ function persistBase(entry) {
|
|
|
783
784
|
}
|
|
784
785
|
function hydrateFromStorage(entry) {
|
|
785
786
|
if (typeof window === "undefined" || !window.localStorage) return;
|
|
787
|
+
if (!entry.isDemoMode) {
|
|
788
|
+
try {
|
|
789
|
+
window.localStorage.removeItem(entry.storageKey);
|
|
790
|
+
} catch {
|
|
791
|
+
}
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
786
794
|
try {
|
|
787
795
|
const raw = window.localStorage.getItem(entry.storageKey);
|
|
788
796
|
if (!raw) return;
|
package/dist/react.mjs
CHANGED
|
@@ -755,6 +755,7 @@ function deriveView(base, ops) {
|
|
|
755
755
|
}
|
|
756
756
|
function persistBase(entry) {
|
|
757
757
|
if (typeof window === "undefined" || !window.localStorage) return;
|
|
758
|
+
if (!entry.isDemoMode) return;
|
|
758
759
|
if (entry.persistTimer) return;
|
|
759
760
|
entry.persistTimer = setTimeout(() => {
|
|
760
761
|
entry.persistTimer = null;
|
|
@@ -778,6 +779,13 @@ function persistBase(entry) {
|
|
|
778
779
|
}
|
|
779
780
|
function hydrateFromStorage(entry) {
|
|
780
781
|
if (typeof window === "undefined" || !window.localStorage) return;
|
|
782
|
+
if (!entry.isDemoMode) {
|
|
783
|
+
try {
|
|
784
|
+
window.localStorage.removeItem(entry.storageKey);
|
|
785
|
+
} catch {
|
|
786
|
+
}
|
|
787
|
+
return;
|
|
788
|
+
}
|
|
781
789
|
try {
|
|
782
790
|
const raw = window.localStorage.getItem(entry.storageKey);
|
|
783
791
|
if (!raw) return;
|