Liking cljdoc? Tell your friends :D

mount.core


alter-state!clj/s≠

clj
(alter-state! {:keys [var inst]} value)
cljs
(alter-state! {:keys [inst]} value)
source (clj)source (cljs)

argsclj/s

(args)
source

ChangeListenerclj/s≠protocol

on-changeclj/s

(on-change this k)

add-watcherclj/s

(add-watcher this ks watcher)
source

cleanup-deletedclj

(cleanup-deleted state)
source

cleanup-if-dirtyclj/s

(cleanup-if-dirty state reason)

in case a namespace is recompiled without calling (mount/stop), a running state instance will still be running. this function stops this 'lost' state instance. it is meant to be called by defstate before defining a new state

in case a namespace is recompiled without calling (mount/stop),
a running state instance will still be running.
this function stops this 'lost' state instance.
it is meant to be called by defstate before defining a new state
sourceraw docstring

current-stateclj/s

(current-state state)
source (clj)source (cljs)

defstateclj/smacro

(defstate state & body)

defines a state (a.k.a. a stateful component). restarts on recompilation. pass ^{:on-reload :noop} to prevent auto-restart on ns recompilation, or ^{:on-reload :stop} to stop on recompilation.

defines a state (a.k.a. a stateful component).
restarts on recompilation.
pass ^{:on-reload :noop} to prevent auto-restart on ns recompilation,
  or ^{:on-reload :stop} to stop on recompilation.
sourceraw docstring

defstate!clj/smacro

(defstate! state & {:keys [start! stop!]})
source

DerefableStatecljs

source

exceptclj/s

(except states)
(except states these)
source

find-all-statesclj/s

(find-all-states)
source

in-clj-modeclj/s

(in-clj-mode)
source

in-cljc-modeclj/s

(in-cljc-mode)
source

mount-itclj/s

(mount-it s-var s-name s-meta)
source

NotStartedStatecljs

source

on-reload-metaclj/s

(on-reload-meta s-var)
source

onlyclj/s

(only states)
(only states these)
source

restart-listenerclj/s

(restart-listener)
(restart-listener watchers)
source

RestartListenercljs

source

running-noop?clj/s

(running-noop? s-name)
source

running-statesclj/s

(running-states)
source

startclj/s

(start & states)
source

start-withclj/s

(start-with with)
source

start-with-argsclj/s

(start-with-args xs & states)
source

start-with-statesclj/s

(start-with-states with)
source

start-withoutclj/s

(start-without & states)
source

stopclj/s

(stop & states)
source

stop-exceptclj/s

(stop-except & states)
source

swapclj/s

(swap with)
(swap states with)
source

swap-statesclj/s

(swap-states with)
(swap-states states with)
source

unpoundclj/s

(unpound f)
source

var-to-strcljs

(var-to-str v)
source

with-argsclj/s

(with-args args)
(with-args states args)
source

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

× close