mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-22 14:58:12 +00:00
Fix typos.
This commit is contained in:
parent
99aeb696d2
commit
138f8c4327
@ -35,7 +35,7 @@
|
||||
|
||||
(rf/reg-event-db ;; usage: (dispatch [:timer a-js-Date])
|
||||
:timer ;; every second an event of this kind will be dispatched
|
||||
(fn [db [_ new-time]] ;; note how the 2nd parameter is desctructure to obtain the data value
|
||||
(fn [db [_ new-time]] ;; note how the 2nd parameter is destructured to obtain the data value
|
||||
(assoc db :time new-time))) ;; compute and return the new application state
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
(rf/reg-sub
|
||||
:time
|
||||
(fn [db _] ;; db is current app state. 2nd usused param is query vector
|
||||
(fn [db _] ;; db is current app state. 2nd unused param is query vector
|
||||
(-> db
|
||||
:time)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user