mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 07:18:22 +00:00
Fixed some typos
This commit is contained in:
parent
0b315d04df
commit
9996f11a17
@ -3,7 +3,7 @@
|
|||||||
[re-frame.core :as rf]
|
[re-frame.core :as rf]
|
||||||
[clojure.string :as str]))
|
[clojure.string :as str]))
|
||||||
|
|
||||||
;; A detailed walk-through of this source code is provied in the docs:
|
;; A detailed walk-through of this source code is provided in the docs:
|
||||||
;; https://github.com/Day8/re-frame/blob/master/docs/CodeWalkthrough.md
|
;; https://github.com/Day8/re-frame/blob/master/docs/CodeWalkthrough.md
|
||||||
|
|
||||||
;; -- Domino 1 - Event Dispatch -----------------------------------------------
|
;; -- Domino 1 - Event Dispatch -----------------------------------------------
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
(defn todos->local-store
|
(defn todos->local-store
|
||||||
"Puts todos into localStorage"
|
"Puts todos into localStorage"
|
||||||
[todos]
|
[todos]
|
||||||
(.setItem js/localStorage ls-key (str todos))) ;; sorted-map writen as an EDN map
|
(.setItem js/localStorage ls-key (str todos))) ;; sorted-map written as an EDN map
|
||||||
|
|
||||||
|
|
||||||
;; -- cofx Registrations -----------------------------------------------------
|
;; -- cofx Registrations -----------------------------------------------------
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
;; Layer 2 query functions are "extractors". They take from `app-db`
|
;; Layer 2 query functions are "extractors". They take from `app-db`
|
||||||
;; and don't do any further computation on the extracted values. Any further
|
;; and don't do any further computation on the extracted values. Any further
|
||||||
;; computation should happen in Layer 3.
|
;; computation should happen in Layer 3.
|
||||||
;; Why? It is an efficiency thing. Every Layer 2 subscriptions will rerun anytime
|
;; Why? It is an efficiency thing. Every Layer 2 subscription will rerun any time
|
||||||
;; that `app-db` changes (in any way). As a result, we want Layer 2 to be trivial.
|
;; that `app-db` changes (in any way). As a result, we want Layer 2 to be trivial.
|
||||||
;;
|
;;
|
||||||
(reg-sub
|
(reg-sub
|
||||||
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
;; This function returns the input signals.
|
;; This function returns the input signals.
|
||||||
;; In this case, it returns a single signal.
|
;; In this case, it returns a single signal.
|
||||||
;; Although not required in this example, it is called with two paramters
|
;; Although not required in this example, it is called with two parameters
|
||||||
;; being the two values supplied in the originating `(subscribe X Y)`.
|
;; being the two values supplied in the originating `(subscribe X Y)`.
|
||||||
;; X will be the query vector and Y is an advanced feature and out of scope
|
;; X will be the query vector and Y is an advanced feature and out of scope
|
||||||
;; for this explanation.
|
;; for this explanation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user