fix red screen on figwheel reloading when intro screen has been opened

This commit is contained in:
Roman Volosovskyi 2018-09-24 19:33:23 +03:00
parent e6ad72039f
commit bf2e51f856
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 3 additions and 2 deletions

View File

@ -314,9 +314,10 @@
(defonce rand-label (rand/id))
(defonce main-component (atom nil))
(defn main []
(let [view-id (re-frame/subscribe [:get :view-id])
main-component (atom nil)]
(let [view-id (re-frame/subscribe [:get :view-id])]
(reagent/create-class
{:component-did-mount
(fn []