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:
Christophe Gragnic 2017-07-14 07:40:30 +02:00
parent 9a3584a8b6
commit f7c3684338
1 changed files with 1 additions and 2 deletions

View File

@ -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