Simpler line in simple/core
It also makes the code like in the walkthrough: <https://github.com/Day8/re-frame/blob/master/docs/CodeWalkthrough.md#reg-sub>
This commit is contained in:
parent
9a3584a8b6
commit
f7c3684338
|
@ -44,8 +44,7 @@
|
|||
(rf/reg-sub
|
||||
:time
|
||||
(fn [db _] ;; db is current app state. 2nd unused param is query vector
|
||||
(-> db
|
||||
:time)))
|
||||
(:time db))) ;; return a query computation over the application state
|
||||
|
||||
(rf/reg-sub
|
||||
:time-color
|
||||
|
|
Loading…
Reference in New Issue