mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 05:01:39 +02: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.state :as st]
|
||||||
[uxbox.schema :as sc]
|
[uxbox.schema :as sc]
|
||||||
[uxbox.locales :refer (tr)]
|
[uxbox.locales :refer (tr)]
|
||||||
|
[uxbox.data.projects :as dp]
|
||||||
[uxbox.ui.messages :as uum]))
|
[uxbox.ui.messages :as uum]))
|
||||||
|
|
||||||
;; --- Profile Fetched
|
;; --- Profile Fetched
|
||||||
|
@ -83,6 +84,7 @@
|
||||||
(rx/catch on-error)
|
(rx/catch on-error)
|
||||||
(rx/map :payload)
|
(rx/map :payload)
|
||||||
(rx/mapcat #(rx/of (logged-in %)
|
(rx/mapcat #(rx/of (logged-in %)
|
||||||
|
(dp/fetch-projects)
|
||||||
(fetch-profile))))))))
|
(fetch-profile))))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -59,8 +59,9 @@
|
||||||
|
|
||||||
(defn app-will-mount
|
(defn app-will-mount
|
||||||
[own]
|
[own]
|
||||||
(rs/emit! (uda/fetch-profile)
|
(when @auth-data
|
||||||
(dp/fetch-projects))
|
(rs/emit! (uda/fetch-profile)
|
||||||
|
(dp/fetch-projects)))
|
||||||
own)
|
own)
|
||||||
|
|
||||||
(def app
|
(def app
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue