feat(frontend): improve profile loading

This commit is contained in:
Andrey Antukh 2019-07-03 09:30:59 +02:00
parent ef47563055
commit 93b4258f02
4 changed files with 60 additions and 49 deletions

View file

@ -8,6 +8,7 @@
(:require
[rumext.core :as mx :include-macros true]
[uxbox.main.data.auth :refer [logout]]
[uxbox.main.data.users :as udu]
[uxbox.main.locales.en :as en]
[uxbox.main.locales.fr :as fr]
[uxbox.main.store :as st]
@ -104,6 +105,8 @@
(st/emit! #(assoc % :router router))
(add-watch html-history/path ::main #(on-navigate router %4))
(st/emit! (udu/fetch-profile))
(mx/mount (app) (dom/get-element "app"))
(mx/mount (lightbox) (dom/get-element "lightbox"))
(mx/mount (loader) (dom/get-element "loader"))