fix(react): outlet will not clear in react 18 with hot reload (#25703)

Resolves #25507
This commit is contained in:
Sean Perkins
2022-08-03 16:33:26 -04:00
committed by GitHub
parent 3cd48ac4f8
commit 3878bf7652
2 changed files with 44 additions and 16 deletions

View File

@ -23,8 +23,7 @@ export abstract class ViewStacks {
clear(outletId: string) {
// Give some time for the leaving views to transition before removing
setTimeout(() => {
// console.log('Removing viewstack for outletID ' + outletId);
return setTimeout(() => {
delete this.viewStacks[outletId];
}, 500);
}