mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
fix(data): skip recursive call if values are identical (#8967)
This commit is contained in:
parent
05001e695e
commit
a7658e03a1
@ -55,7 +55,11 @@ function mergeData (to: Object, from: ?Object): Object {
|
||||
fromVal = from[key]
|
||||
if (!hasOwn(to, key)) {
|
||||
set(to, key, fromVal)
|
||||
} else if (isPlainObject(toVal) && isPlainObject(fromVal)) {
|
||||
} else if (
|
||||
toVal !== fromVal &&
|
||||
isPlainObject(toVal) &&
|
||||
isPlainObject(fromVal)
|
||||
) {
|
||||
mergeData(toVal, fromVal)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user