-
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
条件渲染对组件无效 #285
Comments
确实会有这个问题,在运行时没有加入组件是否显示的判断,导致只要使用了组件就会执行挂载的生命周期,下下个版本 (0.0.69) 修复 |
Good |
目前还是没有修复这个问题~预计原声组件化方案完成后可以解决 |
Closed
最新的 beta 版本已经修复了这个问题~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如下图,父组件的
this.state.msg
初始化为null
的时候,子组件Test
显然不应该被渲染,否则必然会发生逻辑错误(例如在子组件Test
中的componentWillMount
中发送网络请求,但this.props.msg
还是null
就尴尬了)(版本 0.0.67)
The text was updated successfully, but these errors were encountered: