Skip to content

Instantly share code, notes, and snippets.

@thiagofm
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagofm/f736826b4b0a45f06a20 to your computer and use it in GitHub Desktop.
Save thiagofm/f736826b4b0a45f06a20 to your computer and use it in GitHub Desktop.
; I have this atom inside db.cljs
(defonce app-db (atom {}))
; This cursor fn
(defn character-maps []
(reagent/cursor app-db [:character-maps]))
; When I do
(add-watch (db/character-maps) :watch-change update-done)
; update-done is never called.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment