reagent.ratom
Reactive atoms, reactions and tracking.
IDisposableprotocol
No docstring.
SourceIReactiveAtomprotocol
No docstring.
SourceIRunnableprotocol
No docstring.
Sourceatomfunction
(atom x)
(atom x & {:keys [meta validator]})Like clojure.core/atom, except that it keeps track of derefs.
check-derefsfunction
(check-derefs f)
No docstring.
Sourcecursorfunction
(cursor src path)
No docstring.
Sourcedebugvar
No docstring.
Sourceflush!function
(flush!)
No docstring.
Sourcemake-reactionfunction
(make-reaction f & {:keys [auto-run on-set on-dispose]})Creates a Reaction from a function.
- :auto-run - starts running the reaction immediately, and runs again when atoms deferenced in the function change.
- :on-set - runs when reaction value is updated, before notifying watchers.
- :on-dispose - runs when the reaction is disposed.
make-trackfunction
(make-track f args)
No docstring.
Sourcemake-track!function
(make-track! f args)
No docstring.
Sourcemake-wrapperfunction
(make-wrapper value callback-fn args)
No docstring.
Sourcereactionmacro
(reaction & body)
Prefer using reagent.core/reaction.
reactive?function
(reactive?)
No docstring.
Sourcerun!macro
(run! & body)
Creates a Reaction from the body, and runs the body immediately and again whenever atoms deferenced in the body change. Body should side effect.
Use dispose! to stop running the Reaction.
run-in-reactionfunction
(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.
runningfunction
(running)
No docstring.
Sourcetrackfunction
(track f & args)
No docstring.
Sourcetrack!function
(track! f & args)
No docstring.
Sourcewith-letmacro
(with-let bindings & body)
No docstring.
Sourcewith-let-destroyfunction
(with-let-destroy v)
No docstring.
Sourcewith-let-valuesfunction
(with-let-values key)
No docstring.
Source