Update store.js

pull/1761/head
Dmitry Kurmanov 6 years ago committed by GitHub
parent b5140cdad3
commit 74b11a6389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -162,7 +162,7 @@ assign(Store.prototype, {
let dirty = false; let dirty = false;
for (const key in newState) { for (const key in newState) {
if (this._computed[key]) throw new Error(`'${key}' is a read-only property`); if (this._computed[key]) throw new Error(`'${key}' is a read-only computed property`);
if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true;
} }
if (!dirty) return; if (!dirty) return;

Loading…
Cancel
Save