Liking cljdoc? Tell your friends :D
ClojureScript only.

barebuild.hook

One replaceable function the host app installs, called at the edge. The slot and the rule for filling it live here. What calling the hook means belongs to whoever owns the slot, and that is the whole of the difference between the two that exist.

One replaceable function the host app installs, called at the edge. The slot and the rule for
filling it live here. What calling the hook means belongs to whoever owns the slot, and that is
the whole of the difference between the two that exist.
raw docstring

install!cljs

(install! slot kind f)

Put f in slot, the atom holding the page's one hook of kind. Nil clears it, and what is not callable is refused here rather than failing at every call site later.

Put `f` in `slot`, the atom holding the page's one hook of `kind`. Nil clears it, and what is not
callable is refused here rather than failing at every call site later.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close