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 f424a39 commit 2ea7770Copy full SHA for 2ea7770
src/utils/cache.js
@@ -10,7 +10,7 @@ export const makePropWatcher = propName => ({
10
return
11
}
12
if (isEmpty(newValue) || isEmpty(oldValue)) {
13
- this[propName] = cloneDeep(newValue || {})
+ this[propName] = cloneDeep(newValue)
14
15
16
for (const key in oldValue) {
@@ -26,7 +26,7 @@ export const makePropWatcher = propName => ({
26
27
export const makePropCacheMixin = (propName, proxyPropName) => ({
28
data() {
29
- return { [proxyPropName]: cloneDeep(this[propName] || {}) }
+ return { [proxyPropName]: cloneDeep(this[propName]) }
30
},
31
watch: {
32
// Work around unwanted re-renders: https://github.com/vuejs/vue/issues/10115
0 commit comments