Skip to content
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

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

Open
wants to merge 1 commit into
base: dev
from

Conversation

@bailnl
Copy link

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

@bailnl bailnl force-pushed the bailnl:dev branch from b070bb2 to a023abe Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.