- typo and temporary re-instate of get-in-db to get refactors and unit tests running

This commit is contained in:
hipitihop 2014-12-16 11:48:41 +10:00
parent 0753e1ddd6
commit bac24cfd37
2 changed files with 3 additions and 2 deletions

View File

@ -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 {}))

View File

@ -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."