pull/1724/merge
PaulMaly 7 years ago committed by GitHub
commit 755485079b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,6 +140,14 @@ export function setDev(newState) {
} }
this._checkReadOnly(newState); this._checkReadOnly(newState);
Object.keys(newState).forEach(prop => {
if (prop in this._state && typeof this._state[prop] !== 'undefined'
&& typeof this._state[prop] !== typeof newState[prop]) {
console.warn('Type of data property "' + prop + '" not match with previous one.');
}
});
set.call(this, newState); set.call(this, newState);
} }

Loading…
Cancel
Save