Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
feat: add destroy method, remove event listener on destroy #3000
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