mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-12 09:44:13 +00:00
9b04dc6530
the defn macro knows register the function as an events under the keywords provided in the :events key of the attributes map. It also adds the interceptors provided in the :interceptors map exemple: ```clojure (fx/defn hello4 {:doc "this function is useless as well" :events [:test/valid1 :test/valid2]} [{:keys [db]} b] {:db (assoc db :a b) :b (:a db)}) ``` Signed-off-by: yenda <eric@status.im>