diff --git a/src/shared/index.js b/src/shared/index.js index 066942f1a6..4bba44b0ea 100644 --- a/src/shared/index.js +++ b/src/shared/index.js @@ -140,6 +140,14 @@ export function setDev(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); }