Liking cljdoc? Tell your friends :D
All platforms.

re-frame.fx


do-fxclj/s

An interceptor which actions a context's (side) :effects.

For each key in the :effects map, call the effects handler previously registered using reg-fx.

So, if :effects was: {:dispatch [:hello 42] :db {...} :undo "set flag"} call the registered effects handlers for each of the map's keys: :dispatch, :undo and :db.

An interceptor which actions a `context's` (side) `:effects`.

For each key in the `:effects` map, call the `effects handler` previously
registered using `reg-fx`.

So, if `:effects` was:
    {:dispatch  [:hello 42]
     :db        {...}
     :undo      "set flag"}
call the registered effects handlers for each of the map's keys:
`:dispatch`, `:undo` and `:db`.
sourceraw docstring

kindclj/s

source

registerclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close