From 2195dd62b56e8083942d406d34222915ea13358e Mon Sep 17 00:00:00 2001 From: Tim Gilbert Date: Fri, 17 Feb 2017 16:44:18 -0500 Subject: [PATCH] Typo fix in reg-sub-raw sample code --- docs/SubscriptionFlow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/SubscriptionFlow.md b/docs/SubscriptionFlow.md index e48c7007c..49fdec53c 100644 --- a/docs/SubscriptionFlow.md +++ b/docs/SubscriptionFlow.md @@ -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.