Skip to content
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

页面初始化先执行render函数后执行componentWillMount函数 #311

Closed
jialongsu opened this issue Jul 12, 2018 · 2 comments
Closed

Comments

@jialongsu
Copy link

问题描述
页面初始化先执行render函数后执行componentWillMount函数

复现步骤

期望行为

报错信息

系统信息

  • 操作系统: [mac]
  • Taro 版本 [e.g. v.0.0.68]
  • Node.js 版本 [e.g. v9.4.0]

补充信息

@MichaelMaresca1986
Copy link

Do not understand. English only

@luckyadam
Copy link
Member

恩,这是组件化导致的,当属正常,因为需要先搜集一次 render 里定义的变量,放到 state 里去,所以需要先执行一次 render 方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@luckyadam @jialongsu @MichaelMaresca1986 and others