- typo and temporary re-instate of get-in-db to get refactors and unit tests running
This commit is contained in:
parent
0753e1ddd6
commit
bac24cfd37
|
@ -1,7 +1,7 @@
|
|||
(ns re-frame.db
|
||||
(:require [reagent.core :as r]))
|
||||
|
||||
;; Tthe application state
|
||||
;; The application state
|
||||
;; Should not be accessed directly by application code (neither handlers or subscriptions)
|
||||
(def app-db (r/atom {}))
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
;; Why do we need this?
|
||||
;; If we do need it, use peak-db so as to avoid reactive redraws.
|
||||
#_(defn get-in-db
|
||||
;; 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."
|
||||
|
|
Loading…
Reference in New Issue