Skip to content

Instantly share code, notes, and snippets.

@dviramontes
Created May 20, 2015 02:38
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 dviramontes/85f50148dd65add946e2 to your computer and use it in GitHub Desktop.
Save dviramontes/85f50148dd65add946e2 to your computer and use it in GitHub Desktop.
atom watch
(add-watch app-state :watcher
(fn [key atom -old -new]
(print "-- Atom State Changed --")
(print "key " key)
(print "atom" atom)
(print "old" -old)
(print "new" -new)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment