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

constructor 无法获取 props(0.0.63 与之后的新版本不兼容) #398

Closed
kenberkeley opened this issue Jul 29, 2018 · 4 comments
Closed

Comments

@kenberkeley
Copy link

image

@kenberkeley
Copy link
Author

kenberkeley commented Jul 29, 2018

亲测 0.0.63 不会报错,之后的版本都报错

image

@kenberkeley kenberkeley changed the title constructor 无法获取 props(如果是小程序限制无法解决,则建议加入文档) constructor 无法获取 props(0.0.63 与之后的新版本不兼容) Jul 29, 2018
@kenberkeley
Copy link
Author

#285 (comment)

@kenberkeley
Copy link
Author

隔壁老李建议使用 defaultProps,且自行在 constructor 中做容错处理

@luckyadam
Copy link
Member

后续会在文档中注明这一点~

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

2 participants