We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.22
sfc.vuejs.org/
父子组件传值,子组件声明 attr 并且初始值是 underfined 此时,更新 attr, 子组件 $attrs 并未收到更新,发现此时的更新进入 $props 中(并未在子组件中,声明改 attr 为 prop 属性)
排查发现: updateProps 会在 _hmrId 为 underfined 时,把 attribute 设置到 $porps 中
期望 $attrs 更新,而不是 $porps 更新
$attrs 未更新,prop 进入 $porps 且转换为驼峰规则
The text was updated successfully, but these errors were encountered:
fix(runtime-core): handle initial undefined attrs (#5017)
6d887aa
fix #5016
Successfully merging a pull request may close this issue.
Version
3.2.22
Reproduction link
sfc.vuejs.org/
Steps to reproduce
父子组件传值,子组件声明 attr 并且初始值是 underfined
此时,更新 attr, 子组件 $attrs 并未收到更新,发现此时的更新进入 $props 中(并未在子组件中,声明改 attr 为 prop 属性)
排查发现:
updateProps 会在 _hmrId 为 underfined 时,把 attribute 设置到 $porps 中
What is expected?
期望 $attrs 更新,而不是 $porps 更新
What is actually happening?
$attrs 未更新,prop 进入 $porps 且转换为驼峰规则
The text was updated successfully, but these errors were encountered: