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

组件需要增加componentDidUpdate生命周期哦 #2

Open
guoyueting opened this issue Apr 10, 2019 · 1 comment
Open

组件需要增加componentDidUpdate生命周期哦 #2

guoyueting opened this issue Apr 10, 2019 · 1 comment

Comments

@guoyueting
Copy link

如果不增加componentDidUpdate生命周期,组件接受父组件的数据发生变化时,该组件的数据还是第一次的数据,会产生一些bug,比如父组件第一次传的数组是[]时,即使设置loop和auto也无法自动切换

@shiye515
Copy link
Owner

感谢建议,我周末会更新一下

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