Rename all "-l" suffix with "-ref" suffix.

That is more intiutive.
This commit is contained in:
Andrey Antukh 2016-07-09 21:46:10 +03:00
parent f20ce6f057
commit d7f21dc130
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
42 changed files with 129 additions and 129 deletions

View file

@ -42,7 +42,7 @@
(def ^:const restricted?
(complement +unrestricted+))
(def route-l
(def route-ref
(-> (l/key :route)
(l/derive st/state)))
@ -77,8 +77,8 @@
(defn app-render
[own]
(let [route (mx/react route-l)
auth (mx/react st/auth-l)
(let [route (mx/react route-ref)
auth (mx/react st/auth-ref)
location (:id route)
params (:params route)]
(if (and (restricted? location) (not auth))
@ -104,7 +104,7 @@
(defn app-will-mount
[own]
(when @st/auth-l
(when @st/auth-ref
(rs/emit! (udu/fetch-profile)))
own)