Skip to content

Commit

Permalink
Merge pull request day8#323 from timgilbert/subscription-docs-typo
Browse files Browse the repository at this point in the history
Typo fix in reg-sub-raw sample code
  • Loading branch information
danielcompton authored Feb 20, 2017
2 parents 3e16530 + 2195dd6 commit 931ba31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/SubscriptionFlow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 931ba31

Please sign in to comment.