Liking cljdoc? Tell your friends :D

matthiasn.systems-toolbox.switchboard.init


cmp-maps-setclj/s

(cmp-maps-set val)

Returns a set with component maps.

Returns a set with component maps.
sourceraw docstring

shutdown-allclj/s

(shutdown-all {:keys [current-state]})

Call shutdown function on each component to prepare for reload.

Call shutdown function on each component to prepare for reload.
sourceraw docstring

shutdown-cmpclj/s

(shutdown-cmp {:keys [current-state msg-payload]})

Call shutdown function on specified component.

Call shutdown function on specified component.
sourceraw docstring

wire-or-init-compclj/s

(wire-or-init-comp init?)

Either wire existing and already instantiated component or instantiate a component from a component map. Also capable of reloading component, e.g. when using Figwheel on the client side. When a previous component with the same name exists, this function first of all unwires that previous component by unsubscribing and untapping all connected channels. Then, the state of that previous component is used in the new component in order to provide a smooth developer experience. Finally, the new component is tapped into the switchboard's firehose and the component is also asked to publish its state once (also useful for Figwheel).

Either wire existing and already instantiated component or instantiate a
component from a component map.
Also capable of reloading component, e.g. when using Figwheel on the client
side.
When a previous component with the same name exists, this function first of
all unwires that previous component by unsubscribing and untapping all
connected channels. Then, the state of that previous component is used in the
new component in order to provide a smooth developer experience.
Finally, the new component is tapped into the switchboard's firehose and the
component is also asked to publish its state once (also useful for Figwheel).
sourceraw docstring

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

× close