From a7658e03a16dc507f0abeba41aee705f773727d0 Mon Sep 17 00:00:00 2001 From: Kael Date: Sat, 1 Dec 2018 10:04:05 +1100 Subject: [PATCH] fix(data): skip recursive call if values are identical (#8967) --- src/core/util/options.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/util/options.js b/src/core/util/options.js index 2906ddd1910..fc7826dc01d 100644 --- a/src/core/util/options.js +++ b/src/core/util/options.js @@ -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) } }