-
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
state中含有对象时,setState的问题,求教 #1492
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题:当page的state含有对象(代码中的obje),且赋值给子组件的prop时(代码中的CompNoConnect),setState()后,page和子组件中的obje相关属性值都没有改变,state.info则改变了,但是通过console得知state确实改了(和 #1162 有点类似) 。
如page中没有子组件CompNoConnect,或是没有传递props,是正常的。
求解。。。
taro 1.2.0-beta.12
https://github.com/agulado/tarojsReport/tree/stateObject/myapp/src
The text was updated successfully, but these errors were encountered: