-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
V4.0.0-beta.13 - VirtualScroll doesn't call ngOnInit of all its children #16023
Comments
Thanks for your issue! Could you please check if this is still an issue in |
Same issue on |
fixes ionic-team#16725 fixes ionic-team#16432 fixes ionic-team#16023 fixes ionic-team#14591 fixes ionic-team#16050 fixes ionic-team#15587
I still facing this issue on |
@JumBay the fix was merged but not released :) |
@JumBay I misunderstood the problem, I think this is the expected behaviour. Virtual-scroll creates a set of components then it reuses, is it not that the point of a virtual-scroll? Your component should be stateless if you want to use it with virtual-scroll, only depending in the inputs the component has. |
As @manucorporat says - the components will be reused. So So you have to look for the changes of this component
And then you will see it :) I also need some time to understand it. So keep in mind: Components are REUSED! |
Thanks that's what I thought and I updated my code in this direction. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic Info
Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug
Just run this simple code on a fresh project:
If you check your console, you'll notice the
ngOnInit()
method is not called for all MovieComponent, only some of themThe text was updated successfully, but these errors were encountered: