Skip to content

Commit

Permalink
Keycard did load event backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Mar 10, 2020
1 parent 6415641 commit a036b7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/status_im/ui/screens/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit a036b7a

Please sign in to comment.