Skip to content

feat: add destroy method, remove event listener on destroy #3000

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

Closed
wants to merge 1 commit into from

Conversation

bailnl
Copy link

@bailnl bailnl commented Oct 17, 2019

I have a problem in the process of implementing the micro-frontend. When switching between multiple applications, because the Router instance was not destroyed, the event listener was not removed.

I consulted the API documentation and did not find the destroy API。

so~ I implemented One, in the destroy method will remove the existing event listener

@posva posva added the micro frontends Features to handle micro frontends label Dec 8, 2019
@posva
Copy link
Member

posva commented May 11, 2020

Would #3172 fix your problems?

@posva
Copy link
Member

posva commented Jun 24, 2020

Closing since #3172 was merged and was supposed to address the same problems

@posva posva closed this Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request micro frontends Features to handle micro frontends
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants