Liking cljdoc? Tell your friends :D

reagent.ratom


*ratom-context*

source

atom

(atom x)
(atom x & {:keys [meta validator]})

Like clojure.core/atom, except that it keeps track of derefs.

Like clojure.core/atom, except that it keeps track of derefs.
sourceraw docstring

check-derefs

(check-derefs f)
source

cursor

(cursor src path)
source

debug

source

flush!

(flush!)
source

IDisposableprotocol

add-on-dispose!
(add-on-dispose! this f)
dispose!
(dispose! this)
source

IReactiveAtomprotocol

source

IRunnableprotocol

run
(run this)
source

make-reaction

(make-reaction f & {:keys [auto-run on-set on-dispose]})
source

make-track

(make-track f args)
source

make-track!

(make-track! f args)
source

make-wrapper

(make-wrapper value callback-fn args)
source

RAtom

source

RCursor

source

reactionmacro

(reaction & body)
source

Reaction

source

reactive?

(reactive?)
source

run!macro

(run! & body)

Runs body immediately, and runs again whenever atoms deferenced in the body change. Body should side effect.

Runs body immediately, and runs again whenever atoms deferenced in the body change. Body should side effect.
sourceraw docstring

run-in-reaction

(run-in-reaction f obj key run opts)

Evaluates f and returns the result. If f calls deref on any ratoms, creates a new Reaction that watches those atoms and calls run whenever any of those watched ratoms change. Also, the new reaction is added to list of 'watches' of each of the ratoms. The run parameter is a function that should expect one argument. It is passed obj when run. The opts are any options accepted by a Reaction and will be set on the newly created Reaction. Sets the newly created Reaction to the key on obj.

Evaluates `f` and returns the result.  If `f` calls `deref` on any ratoms,
creates a new Reaction that watches those atoms and calls `run` whenever
any of those watched ratoms change.  Also, the new reaction is added to
list of 'watches' of each of the ratoms. The `run` parameter is a function
that should expect one argument.  It is passed `obj` when run.  The `opts`
are any options accepted by a Reaction and will be set on the newly created
Reaction. Sets the newly created Reaction to the `key` on `obj`.
sourceraw docstring

running

(running)
source

track

(track f & args)
source

Track

source

track!

(track! f & args)
source

with-letmacro

(with-let bindings & body)
source

with-let-destroy

(with-let-destroy v)
source

with-let-values

(with-let-values key)
source

Wrapper

source

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

× close