Created
May 20, 2015 02:38
-
-
Save dviramontes/85f50148dd65add946e2 to your computer and use it in GitHub Desktop.
atom watch
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
(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