-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
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
object类型state更新为空{}时,页面数据不更新 #1058
Comments
刚才发现,更新为空{},父组件页面也是不改变 |
关注 |
Leechael
pushed a commit
to Leechael/taro
that referenced
this issue
Mar 15, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
父组件state为object时,更新些object为{}空时,传给子组件,子组件不更新
复现步骤
[或者可以直接贴源代码,能贴文字就不要截图]
期望行为
父组件中product更新为空{}后,子组件数据也跟着更新,把子组件内容重新初始化
报错信息
[这里请贴上你的完整报错截图或文字]
系统信息
The text was updated successfully, but these errors were encountered: