Is there any way to trigger something when *state updates, like displaying a popup?
*state
*state is an atom, you can use add-watch to observe its changes:
add-watch
(add-watch *state :my-watcher (fn [key ref old new] (println new)))