(cmp-maps-set val)
Returns a set with component maps.
Returns a set with component maps.
(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.
(shutdown-cmp {:keys [current-state msg-payload]})
Call shutdown function on specified component.
Call shutdown function on specified component.
(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).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close