From e4b0b765540910c75e96c761a4aed0b89d203cf3 Mon Sep 17 00:00:00 2001 From: Gheorghe Pinzaru Date: Thu, 27 Feb 2020 12:49:42 +0300 Subject: [PATCH] Keycard did load event backward compatibility --- src/status_im/ui/screens/views.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/views.cljs b/src/status_im/ui/screens/views.cljs index 98cd3f7cbb9..eb341bef3e7 100644 --- a/src/status_im/ui/screens/views.cljs +++ b/src/status_im/ui/screens/views.cljs @@ -73,7 +73,11 @@ (defn on-state-change [state] (let [route-name (get-active-route-name (js->clj state))] (tabbar/minimize-bar route-name) - ;; NOTE: Both calls are for backward compatibility, should be reworked in future + + ;; NOTE(Ferossgp): Keycard did-load events backward compatibility + (re-frame/dispatch [:screens/on-will-focus route-name]) + + ;; NOTE(Ferossgp): Both calls are for backward compatibility, should be reworked in future (statusbar/set-status-bar route-name) (re-frame/dispatch [:set :view-id route-name])) (when debug?