mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
More fixes on initial data loading.
This commit is contained in:
parent
38a64c356b
commit
f32b384f5d
2 changed files with 5 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
|||
[uxbox.state :as st]
|
||||
[uxbox.schema :as sc]
|
||||
[uxbox.locales :refer (tr)]
|
||||
[uxbox.data.projects :as dp]
|
||||
[uxbox.ui.messages :as uum]))
|
||||
|
||||
;; --- Profile Fetched
|
||||
|
@ -83,6 +84,7 @@
|
|||
(rx/catch on-error)
|
||||
(rx/map :payload)
|
||||
(rx/mapcat #(rx/of (logged-in %)
|
||||
(dp/fetch-projects)
|
||||
(fetch-profile))))))))
|
||||
|
||||
|
||||
|
|
|
@ -59,8 +59,9 @@
|
|||
|
||||
(defn app-will-mount
|
||||
[own]
|
||||
(rs/emit! (uda/fetch-profile)
|
||||
(dp/fetch-projects))
|
||||
(when @auth-data
|
||||
(rs/emit! (uda/fetch-profile)
|
||||
(dp/fetch-projects)))
|
||||
own)
|
||||
|
||||
(def app
|
||||
|
|
Loading…
Reference in a new issue