Typo fix in reg-sub-raw sample code

This commit is contained in:
Tim Gilbert 2017-02-17 16:44:18 -05:00
parent 3e16530984
commit 2195dd62b5
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ Instead, even simpler, you can just use `subscribe` within the `reaction` itself
[app-db event]
(reaction
(let [a-path-element @(subscribe [:get-path-part])] ;; <-- subscribe used here
get-in @app-db [:some a-path-element])))
(get-in @app-db [:some a-path-element]))))
```
As you can see, this `reaction` has two input signals: `app-db` and `(subscribe [:get-path-part])`. If either changes,
the `reaction` will rerun.