veles 0.0.4 → 0.0.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.
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -528,6 +528,7 @@ function createState(initialValue, subscribeCallback) {
|
|
|
528
528
|
return;
|
|
529
529
|
}
|
|
530
530
|
cb(newSelectedValue);
|
|
531
|
+
trackingEffect.selectedValue = newSelectedValue;
|
|
531
532
|
});
|
|
532
533
|
trackingIterators.forEach((trackingIterator) => {
|
|
533
534
|
const {
|
|
@@ -705,7 +706,7 @@ function combineState(...states) {
|
|
|
705
706
|
states.forEach((state) => {
|
|
706
707
|
state.trackValue(() => {
|
|
707
708
|
const updatedValue = states.map((state2) => state2.getValue());
|
|
708
|
-
combinedState.setValue(
|
|
709
|
+
combinedState.setValue(updatedValue);
|
|
709
710
|
});
|
|
710
711
|
});
|
|
711
712
|
return combinedState;
|
package/dist/index.js
CHANGED
|
@@ -241,6 +241,7 @@ function createState(initialValue, subscribeCallback) {
|
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
243
|
cb(newSelectedValue);
|
|
244
|
+
trackingEffect.selectedValue = newSelectedValue;
|
|
244
245
|
});
|
|
245
246
|
trackingIterators.forEach((trackingIterator) => {
|
|
246
247
|
const {
|
|
@@ -418,7 +419,7 @@ function combineState(...states) {
|
|
|
418
419
|
states.forEach((state) => {
|
|
419
420
|
state.trackValue(() => {
|
|
420
421
|
const updatedValue = states.map((state2) => state2.getValue());
|
|
421
|
-
combinedState.setValue(
|
|
422
|
+
combinedState.setValue(updatedValue);
|
|
422
423
|
});
|
|
423
424
|
});
|
|
424
425
|
return combinedState;
|