elbe-ui 0.2.19 → 0.2.20
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.js +5 -2
- package/package.json +1 -1
- package/src/bit/bit.tsx +3 -1
package/dist/index.js
CHANGED
|
@@ -17330,8 +17330,11 @@ function makeBit(name) {
|
|
|
17330
17330
|
function ProvideBit(context, parameters, worker, ctrl, children) {
|
|
17331
17331
|
const s5 = useSignal({ loading: true });
|
|
17332
17332
|
const _set = (n3) => {
|
|
17333
|
-
|
|
17334
|
-
|
|
17333
|
+
try {
|
|
17334
|
+
if (JSON.stringify(n3) === JSON.stringify(s5.peek()))
|
|
17335
|
+
return;
|
|
17336
|
+
} catch (e4) {
|
|
17337
|
+
}
|
|
17335
17338
|
s5.value = n3;
|
|
17336
17339
|
};
|
|
17337
17340
|
const emit = (data) => _set({ data });
|
package/package.json
CHANGED
package/src/bit/bit.tsx
CHANGED
|
@@ -54,7 +54,9 @@ export function ProvideBit<I, C, T>(
|
|
|
54
54
|
const s = useSignal<BitState<T>>({ loading: true });
|
|
55
55
|
|
|
56
56
|
const _set = (n: BitState<T>) => {
|
|
57
|
-
|
|
57
|
+
try {
|
|
58
|
+
if (JSON.stringify(n) === JSON.stringify(s.peek())) return;
|
|
59
|
+
} catch (e) {}
|
|
58
60
|
s.value = n;
|
|
59
61
|
};
|
|
60
62
|
|