8000 fix(ssr): memory leak in poll method by ronald-d-rogers · Pull Request #2875 · vuejs/vue-router · GitHub
[go: up one dir, main page]

Skip to content

fix(ssr): memory leak in poll method #2875

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

Merged
merged 12 commits into from
Oct 6, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: add back the isBeingDestroyed check
  • Loading branch information
posva committed Sep 24, 2019
commit 0c8f65aa8fb5cff443bf700642898690fc11eac6
2 changes: 1 addition & 1 deletion src/util/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function handleRouteEntered (route: Route) {
if (!instance || !cbs) continue
delete record.enteredCbs[name]
for (let i = 0; i < cbs.length; i++) {
cbs[i](instance)
if (!instance._isBeingDestroyed) cbs[i](instance)
}
}
}
Expand Down
0