is there any way to check the previous reaction value inside reaction?
(def atm (r/atom 1)) (def tmp (ra/reaction (if-not (neg? @tmp) (dec @atm) @tmp)))
No. But you can do it via an extra atom.