Replace setImmediate with setTimeout (#12614)

This commit is contained in:
Michael Telatynski
2024-06-13 15:15:59 +01:00
committed by GitHub
parent 21ae29c002
commit 8b4e3e6647
21 changed files with 46 additions and 39 deletions
+1 -1
View File
@@ -920,7 +920,7 @@ export function logout(oidcClientStore?: OidcClientStore): void {
// logout doesn't work for guest sessions
// Also we sometimes want to re-log in a guest session if we abort the login.
// defer until next tick because it calls a synchronous dispatch, and we are likely here from a dispatch.
setImmediate(() => onLoggedOut());
setTimeout(onLoggedOut, 0);
return;
}