From 821ad5703fe037bccd8467862bcf5fefdaccb7de Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 25 Oct 2019 16:37:57 +0100 Subject: [PATCH] LifeCycle onLoggedOut unmount before stopping client Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Lifecycle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lifecycle.js b/src/Lifecycle.js index 7490c5d464..13f3abccb1 100644 --- a/src/Lifecycle.js +++ b/src/Lifecycle.js @@ -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(); }