aoye 0.0.63 → 0.0.65
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/aoye.cjs.js +1 -1
- package/dist/aoye.cjs.js.map +1 -1
- package/dist/aoye.esm.js +1 -1
- package/dist/aoye.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/aoye.esm.js
CHANGED
|
@@ -1601,7 +1601,7 @@ function effect(callback, depOrOpt, opt) {
|
|
|
1601
1601
|
return ef;
|
|
1602
1602
|
}
|
|
1603
1603
|
let mounted = false;
|
|
1604
|
-
const deps = depOrOpt;
|
|
1604
|
+
const deps = depOrOpt.map(dep => typeof dep === 'function' ? new Computed(dep) : dep);
|
|
1605
1605
|
const immediate = deps.length === 0 ? true : opt.immediate ?? true;
|
|
1606
1606
|
const vs = Array.from({
|
|
1607
1607
|
length: deps.length
|