Merge pull request #221 from si14/patch-1

Add missing handler to "Loading Initial Data" doc
This commit is contained in:
Mike Thompson 2016-08-31 22:53:13 +10:00 committed by GitHub
commit e13857886e

View File

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