 
 (defn app-will-mount
   [own]
-  (when @auth-data
-    (rs/emit! (udu/fetch-profile)
-              (dp/fetch-projects)))
+  (when @auth-data-l
+    (rs/emit! (udu/fetch-profile)))
   own)
 
 (def app

            [uxbox.rstore :as rs]
            [uxbox.data.projects :as dp]
            [uxbox.data.users :as udu]
            [uxbox.ui.lightbox :as ui-lightbox]
            [uxbox.ui.auth :as ui-auth]
            [uxbox.ui.dashboard :as ui-dashboard]

    :mixins [rum/reactive]
    :name "app"}))

;; --- Loader

(defn loader-render
  [own]
  (when (rum/react loader-l)
    (html
     [:div.loader-content i/loader])))

(def loader
  (mx/component
   {:render loader-render
    :name "loader"
    :mixins [rum/reactive mx/static]}))

;; --- Main Entry Point

(defn init
  []
  (let [app-dom (gdom/getElement "app")
        lightbox-dom (gdom/getElement "lightbox")
        loader-dom (gdom/getElement "loader")]
    (rum/mount (app) app-dom)
    (rum/mount (ui-lightbox/lightbox) lightbox-dom)
    (rum/mount (loader) loader-dom)))
