DEV: dom clean should be cancelled on aborted transition (#17736)

This commit is contained in:
Joffrey JAFFEUX 2022-08-01 10:56:41 +02:00 committed by GitHub
parent de54bdd73d
commit 6ce75d3824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ export default {
const router = container.lookup("router:main");
router.on("routeDidChange", (transition) => {
if (transition.isAborted) {
return;
}
scheduleOnce("afterRender", container, _clean, transition);
});
},