Thanks to visit codestin.com Credit goes to github.com
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 5489339 commit 6eaf56eCopy full SHA for 6eaf56e
‎src/core/instance/state.js
@@ -86,7 +86,7 @@ function initProps (vm: Component, propsOptions: Object) {
86
)
87
}
88
defineReactive(props, key, value, () => {
89
- if (vm.$parent && !isUpdatingChildComponent) {
+ if (!isRoot && !isUpdatingChildComponent) {
90
warn(
91
`Avoid mutating a prop directly since the value will be ` +
92
`overwritten whenever the parent component re-renders. ` +
0 commit comments