Liking cljdoc? Tell your friends :D
All platforms.

re-frame-lib.events


handleclj/s

(handle state event-v)

Given an event vector event-v and the re-frame state, look up the associated interceptor chain, and execute it.

Given an event vector `event-v` and the re-frame `state`, look up
the associated interceptor chain, and execute it.
sourceraw docstring

kindclj/s

source

registerclj/s

(register state id interceptors)

Associate the given event id with the given collection of interceptors in the re-frame state.

interceptors may contain nested collections and there may be nils at any level,so process this structure into a simple, nil-less vector before registration.

Typically, an event handler will be at the end of the chain (wrapped in an interceptor).

Associate the given event `id` with the given collection of `interceptors`
in the re-frame `state`.

 `interceptors` may contain nested collections and there may be nils
 at any level,so process this structure into a simple, nil-less vector
 before registration.

 Typically, an `event handler` will be at the end of the chain (wrapped
 in an interceptor).
sourceraw docstring

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

× close