-
-
Notifications
You must be signed in to change notification settings - Fork 5k
feat(history): Reset history.current when all apps are destroyed #3298
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
Conversation
|
@posva @joeldenning look at the PR, please |
internettrans
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, left a few comments.
| } | ||
|
|
||
| teardownListeners () { | ||
| teardown () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we rename this method, it might make sense to rename the setupListeners method, too.
vue-router/src/history/base.js
Line 251 in dfc2892
| setupListeners () { |
src/history/base.js
Outdated
| this.pending = null | ||
| } | ||
|
|
||
| teardown () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can just put everything inside here as I don't think it makes sense to call teardownListeners or resetHistoryState separately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@posva done
posva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Thank you for your effort of supporting and developing vue :) |
This resolves #3294