-
Notifications
You must be signed in to change notification settings - Fork 794
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
Component Life Cycle Methods not called as documented #2954
Comments
Hey @JulianLang 👋 Thanks for the detailed bug report! It'd be super helpful if you could create a minimal reproduction case, would you be able to create a repository in GitHub that includes the app structure you describe above, and the exact steps needed to reproduce the issue (e.g. which NPM scripts we'd need to run)? That'd be a huge help to me and the team! 🙂 |
Hi @rwaskiewicz , I pushed the repro here: https://github.com/JulianLang/stencil-bug-lifecycle-hooks You find some steps to get started within the README. But an interesting thing is, that I could not reproduce the original issue, that the toggle-groups Some examples *: * (sorry, I renamed If you need additional help or info, I'm glad to help :) |
Thank you so much! |
Hey, I just wanted to recheck what's the status of this issue :) Is there anything I can help with? |
Looks related to #3580 |
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Consider the following structure:
We have two nested toggle-groups where each should only find their own children. I rely on life-cycle hooks, so that the nested group (B) should look for its children first, mark them as "already belonging", then the next higher toggle-group (A) should search for its children (those, that are not marked yet) and so on.
Unfortunately I see the following life-cycle behavior:
which is not what I expect due to stencil's documentation.
Expected behavior:
The
componentDidLoad
life cycle hook gets called after all children's (slotted or not) as documented here:So it should be:
Steps to reproduce:
connectedCallback
andcomponentDidLoad
to each parent-component (in my case toggle-group) with aconsole.log
Related code:
// insert any relevant code here
Other information:
There were already some issues about this before, but unfortunately they got closed. I hope this issue will make it, as I find it is fundamental to any component framework, that life-cycle hooks can be relied on.
The text was updated successfully, but these errors were encountered: