make dirty local to the for loop

pull/1416/head
Rich Harris 6 years ago committed by GitHub
parent a8d3e93269
commit bb57f2bd50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,11 +61,10 @@ assign(Store.prototype, {
});
const dependents = this._dependents.slice(); // guard against mutations
let dirty;
for (let i = 0; i < dependents.length; i += 1) {
const dependent = dependents[i];
const componentState = {};
dirty = false;
let dirty = false;
for (let j = 0; j < dependent.props.length; j += 1) {
const prop = dependent.props[j];

Loading…
Cancel
Save