We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fb3317 commit bd114b2Copy full SHA for bd114b2
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