@akashjs/runtime 0.1.1 → 0.1.2

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 CHANGED
@@ -755,10 +755,6 @@ function useToggle(initial = false) {
755
755
  };
756
756
  }
757
757
  function usePrevious(source) {
758
- signal(void 0);
759
- effect(() => {
760
- source();
761
- });
762
758
  let lastValue;
763
759
  const tracked = signal(void 0);
764
760
  effect(() => {
@@ -3347,9 +3343,9 @@ function animateSpring(el, target, options = {}) {
3347
3343
  } = options;
3348
3344
  const current = {};
3349
3345
  const velocity = {};
3350
- const computed5 = window.getComputedStyle(el);
3346
+ const computed4 = window.getComputedStyle(el);
3351
3347
  for (const prop of Object.keys(target)) {
3352
- current[prop] = parseFloat(computed5.getPropertyValue(prop)) || 0;
3348
+ current[prop] = parseFloat(computed4.getPropertyValue(prop)) || 0;
3353
3349
  velocity[prop] = 0;
3354
3350
  }
3355
3351
  let animating = true;