- remove handlers/get-in-db
- switch project back to [lein-cljsbuild "1.0.3"]
This commit is contained in:
parent
bac24cfd37
commit
a46ab9b345
|
@ -10,7 +10,7 @@
|
|||
:profiles {:debug {:debug true}
|
||||
:dev {:dependencies [[spellhouse/clairvoyant "0.0-48-gf5e59d3"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.0.4-SNAPSHOT"]
|
||||
:plugins [[lein-cljsbuild "1.0.3"]
|
||||
[com.cemerick/clojurescript.test "0.3.1"]]}}
|
||||
|
||||
:resource-paths ["run/resources"]
|
||||
|
|
|
@ -3,19 +3,6 @@
|
|||
[re-frame.utils :refer [first-in-vector]]))
|
||||
|
||||
|
||||
|
||||
|
||||
;; Why do we need this?
|
||||
;; If we do need it, use peak-db so as to avoid reactive redraws.
|
||||
;; TODO: Still under design dicussion with MT. Reinstated to get things working for now
|
||||
(defn get-in-db
|
||||
"Direct lookup of arbitrary path in state/db without subscription/reaction.
|
||||
NOTE: While it is convenient to not have to pass values through function chains,
|
||||
by definition this also incourages non pure functional style, so resist."
|
||||
[path-v]
|
||||
(get-in @app-db path-v))
|
||||
|
||||
|
||||
(def ^:private id->fn (atom {}))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue