Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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