val is automatically undefined.
This commit is contained in:
parent
05200ebee3
commit
ef0a93b57d
@ -1,8 +1,8 @@
|
||||
export function computed(fn, dependencies = []) {
|
||||
const subscribers = new Set();
|
||||
const dependents = new Set();
|
||||
let val = undefined;
|
||||
let isDirty = true;
|
||||
let val;
|
||||
|
||||
function _computedDirtyReporter() {
|
||||
if (!isDirty) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user