mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-22 14:58:12 +00:00
Merge pull request #323 from timgilbert/subscription-docs-typo
Typo fix in reg-sub-raw sample code
This commit is contained in:
commit
931ba31698
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user