mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 07:41:51 +08:00
fix(react): outlet will not clear in react 18 with hot reload (#25703)
Resolves #25507
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user