You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-16 22:01:54 +03:00
LifeCycle onLoggedOut unmount before stopping client
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -610,7 +610,7 @@ export function onLoggedOut() {
|
||||
// Ensure that we dispatch a view change **before** stopping the client so
|
||||
// so that React components unmount first. This avoids React soft crashes
|
||||
// that can occur when components try to use a null client.
|
||||
dis.dispatch({action: 'on_logged_out'});
|
||||
dis.dispatch({action: 'on_logged_out'}, true);
|
||||
stopMatrixClient();
|
||||
_clearStorage().done();
|
||||
}
|
||||
|
Reference in New Issue
Block a user