mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 07:18:22 +00:00
Typo fix in reg-sub-raw sample code
This commit is contained in:
parent
3e16530984
commit
2195dd62b5
@ -237,7 +237,7 @@ Instead, even simpler, you can just use `subscribe` within the `reaction` itself
|
|||||||
[app-db event]
|
[app-db event]
|
||||||
(reaction
|
(reaction
|
||||||
(let [a-path-element @(subscribe [:get-path-part])] ;; <-- subscribe used here
|
(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,
|
As you can see, this `reaction` has two input signals: `app-db` and `(subscribe [:get-path-part])`. If either changes,
|
||||||
the `reaction` will rerun.
|
the `reaction` will rerun.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user