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 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(() => updatedValue);
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(() => updatedValue);
422
+ combinedState.setValue(updatedValue);
422
423
  });
423
424
  });
424
425
  return combinedState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veles",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "UI library with main focus on performance",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",