Liking cljdoc? Tell your friends :D

sweet-tooth.frontend.handlers

Sweet Tooth provides handlers. Rather than registering outright, handlers are registered with an internal registry using the rr function in this namespace, and the register-handlers function is then used to register the handlers with re-frame. This allows users to specify interceptors for Sweet Tooth's handlers.

TODO: document how you can apply interceptors hierarchically by ns

Sweet Tooth provides handlers. Rather than registering outright,
handlers are registered with an internal registry using the `rr`
function in this namespace, and the `register-handlers` function is
then used to register the handlers with re-frame. This allows users
to specify interceptors for Sweet Tooth's handlers.

TODO: document how you can apply interceptors hierarchically by ns
raw docstring

handlersclj/s


register-handlerclj/s

(register-handler registration id-ns interceptors)

register-handlersclj/s

(register-handlers & [interceptors])

register-registrationclj/s

(register-registration {:keys [id] :as registration})

Store a re-frame registration in sweet little atom

Store a re-frame registration in sweet little atom
raw docstring

rrclj/s

(rr reg-fn id handler-fn)
(rr reg-fn id interceptors handler-fn)

Register a re-frame registration.

Register a re-frame registration.
raw docstring

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

× close