cljfx 2020-05-18

Is there any way to trigger something when *state updates, like displaying a popup?

*state is an atom, you can use add-watch to observe its changes:

(add-watch 
  *state 
  :my-watcher 
  (fn [key ref old new]
    (println new)))