mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 15:28:09 +00:00
Missing square brackets on subscription for :name
This commit is contained in:
parent
6d56754532
commit
1dee4b5aca
@ -156,7 +156,7 @@ quick sketch of the entire pattern. It is very straight-forward.
|
||||
|
||||
(defn main-panel ;; the top level of our app
|
||||
[]
|
||||
(let [name (re-frame/subscribe :name)] ;; we need there to be good data
|
||||
(let [name (re-frame/subscribe [:name])] ;; we need there to be good data
|
||||
[:div "Hello " @name])))
|
||||
|
||||
(defn top-panel ;; this is new
|
||||
|
Loading…
x
Reference in New Issue
Block a user