We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acfe1ad commit cbc1fbcCopy full SHA for cbc1fbc
src/core/observer/index.js
@@ -162,9 +162,11 @@ export function defineReactive (
162
},
163
set: function reactiveSetter (newVal) {
164
const value = getter ? getter.call(obj) : val
165
+ /* eslint-disable no-self-compare */
166
if (newVal === value || (newVal !== newVal && value !== value)) {
167
return
168
}
169
+ /* eslint-enable no-self-compare */
170
if (process.env.NODE_ENV !== 'production' && customSetter) {
171
customSetter()
172
0 commit comments