         nil
         ))))
 
-(defn app-will-mount
-  [own]
-  (when @st/auth-ref
-    (rs/emit! (udu/fetch-profile)))
-  own)
-
-(def app
-  (mx/component
-   {:render app-render
-    :will-mount app-will-mount
-    :mixins [mx/reactive]
-    :name "app"}))
-
 ;; --- Routes
 
 (def routes


;; --- Main App (Component)

(defn app-render
  [own]
  (let [route (mx/react route-ref)
        auth (mx/react st/auth-ref)
        location (:id route)


(defn init
  []
  (mx/mount (app) (dom/get-element "app"))
  (mx/mount (lightbox) (dom/get-element "lightbox"))
  (mx/mount (loader) (dom/get-element "loader")))
