val is automatically undefined.
This commit is contained in:
parent
d5c1cd852b
commit
5591c2f423
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user