-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
onActivated not triggered in child component with lazy mount #10806
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
Comments
The issue goes deeper than the This raises a question about whether the observed results align with the expected behavior or if there might be an inconsistency or potential issue with the way descendant components are handled in this scenario. If using Edit: As a potential workaround for the issue where onActivated is not called on descendant components after a |
You are right. I will try |
The Vue documentation states that the This raises a couple of questions:
I'm ready to provide a PR to address this issue, but I'd like to get feedback from the team first on the expected behavior and the best approach moving forward. |
I found an easier method to trigger |
Note: This behavior is consistent with vue2. |
Vue version
3.4.25
Link to minimal reproduction
https://play.vuejs.org/#eNqFU02P0zAQ/SuWL22lkggKlyWtVNAeAAlWwNESipJJ6sWxLdvxVory3xnHm6zZj+4t43lv9N6byUCPWme+B3pFC1sZrh2x4Hp9YJJ3WhlHPqtOvyWNUR1ZZflUBcLqI5NFHikIxsJBp0XpACtCim8A+ii4jyU+xDl57OZpu8gTKt1SZyslG95mt1ZJFDYECqMVDuACzA/tuJKW0SsydUKvFELdfZ3enOlhO79XJ6j+PvN+a8/hjdEbAxaMB0aXnitNCy62r399hzN+L81O1b1A9IXmT7BK9EFjhH3qZY2yE9yk9ssUL5ftb3t9diDtbCoIDchxwjOKYYfsXrL+IHeX7SYekyOmGDiXNzsQA82WKHmsHPcYf03G+0WHBYel4iKsIw5tkn1Ar1flgpUKO4a3LRioV5sAT0at1xuyP0SZgZ/5UvSAU5IJD2yUjAMu3VPN/WEYopRxLPJQPz2d5Txfcf3IaHLq/136fOhzEPak7u6DaEphYTJ9gwRuIcNLUsLDepO5E8jUf6At/uN6X7M7V8S/4c2e0TCC0fRfWn6lhPg4jj8eTLgrTGOXvc/efaDjP3GgVMA=
Steps to reproduce
Please see reproduction link.
What is expected?
The text should be 'activated triggered'
What is actually happening?
The text is 'activated not triggered'
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: