mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 07:18:22 +00:00
Merge pull request #221 from si14/patch-1
Add missing handler to "Loading Initial Data" doc
This commit is contained in:
commit
e13857886e
@ -135,6 +135,11 @@ quick sketch of the entire pattern. It is very straight-forward.
|
||||
:initialised? ;; usage (subscribe [:initialised?])
|
||||
(fn [db _]
|
||||
(not (empty? db)))) ;; do we have data
|
||||
|
||||
(re-frame/reg-event-db
|
||||
:initialise-db
|
||||
(fn [db _]
|
||||
(assoc db :display-name "Jane Doe")))
|
||||
|
||||
(defn main-panel ;; the top level of our app
|
||||
[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user