-
Notifications
You must be signed in to change notification settings - Fork 795
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
bug: stencil core 4.22.3 listener #6066
Comments
As question (if my assumption is true): Thanks for the clarification and sorry for a incomplete case (kinda busy right now because we release today and everything was broken) |
I've had the same issue as well. I've created a repo that should replicate the issue: stencil-listener-issue In this example, the component |
Not sure if this is related to listeners. I suspect it could be. I'll move it to another issue if it's not.
|
We’ve identified a bug that seems related to this issue. Please let us know if you'd prefer we open a separate issue. Our Use Case
However, when we export the same component using the Angular Output Target (
The expected behavior is working fine with the 4.2.22 version of Stencil but not in the 4.2.23 version. Let us know how we can assist in diagnosing or resolving this! |
Thank you for all the work you and the team put into maintaining this project—it’s incredibly valuable to us, our clients and the community! 🙌 We’ve encountered the same issue described here, and since it’s critical for our use case, I’ve submitted a PR that addresses the problem. If you or someone from the Ionic team could take a look at it soon, it would mean a lot to us. This fix is crucial for our client, and we’d love to help move it forward however we can. Thanks again for your time and dedication! 😊 |
A fix for this was released in Stencil |
Prerequisites
Stencil Version
4.22.3
Current Behavior
Unfortunately I do not have a reproduction case right now.
With 4.22.3 we have a problem that listeners are not working. With 4.22.2 it works fine.
What I assume is happening:
we have 2 components (A and B) that both have a Subcomponent (C) which has a event listener.
When navigating from component A to B the Subcomponent C within B does not set the listener.
I think A (with Sub B) is not yet destructed properly which denies the setup of the listener B/C (change from here: #6052)
This result in stuff not working, pressing reload (or f5) makes them work for the current page.
Expected Behavior
This could be an Issue with us navigating before destruction so this is more of a question.
Expected:
Navigating from Component A to Component B that share a Subcomponent C should set the listener correctly
System Info
Steps to Reproduce
Have 2 Components A and B that share a Component C which has a Event listener. Navigate from A to B => C (in B) does not set Event listeners
Code Reproduction URL
https://github.com/OFurnell/stencil-listener-issue
thx @OFurnell
Additional Information
No response
The text was updated successfully, but these errors were encountered: