Skip to content

Commit bb57f2b

Browse files
authored
make dirty local to the for loop
1 parent a8d3e93 commit bb57f2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

store.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ assign(Store.prototype, {
6161
});
6262

6363
const dependents = this._dependents.slice(); // guard against mutations
64-
let dirty;
6564
for (let i = 0; i < dependents.length; i += 1) {
6665
const dependent = dependents[i];
6766
const componentState = {};
68-
dirty = false;
67+
let dirty = false;
6968

7069
for (let j = 0; j < dependent.props.length; j += 1) {
7170
const prop = dependent.props[j];

0 commit comments

Comments
 (0)