Last active
January 7, 2016 15:38
-
-
Save jlongster/5120b6b1160866affc12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn read [{:keys [state ast]} key params] | |
(println "called") | |
{:value (get @state key :not-found)}) | |
((om/parser {:read read}) {:state (atom {})} '[:foo]) | |
;; output: | |
;; called | |
(def reconciler | |
(om/reconciler | |
{:state {:transactions []} | |
:parser (om/parser {:read read})})) | |
(om/transact! reconciler '[:foo]) | |
;; output: | |
;; called | |
;; called |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment