Liking cljdoc? Tell your friends :D

re-frame.interop


add-on-dispose!

(add-on-dispose! a-ratom f)
Clojure docstring

On JVM Clojure, use an atom to register f to be invoked when dispose! is invoked with a-ratom.

On JVM Clojure, use an atom to register `f` to be invoked when `dispose!` is
invoked with `a-ratom`.
source (clj)source (cljs)raw docstring

debug-enabled?

ClojureScript docstring

@define {boolean}

@define {boolean}
source (clj)source (cljs)raw docstring

dispose!

(dispose! a-ratom)
Clojure docstring

On JVM Clojure, invoke all callbacks registered with add-on-dispose! for a-ratom.

On JVM Clojure, invoke all callbacks registered with `add-on-dispose!` for
`a-ratom`.
source (clj)source (cljs)raw docstring

make-reaction

(make-reaction f)
Clojure docstring

On JVM Clojure, return a deref-able thing which invokes the given function on every deref. That is, make-reaction here provides precisely none of the benefits of reagent.ratom/make-reaction (which only invokes its function if the reactions that the function derefs have changed value). But so long as f only depends on other reactions (which also behave themselves), the only difference is one of efficiency. That is, your tests should see no difference other than that they do redundant work.

On JVM Clojure, return a `deref`-able thing which invokes the given function
on every `deref`. That is, `make-reaction` here provides precisely none of the
benefits of `reagent.ratom/make-reaction` (which only invokes its function if
the reactions that the function derefs have changed value). But so long as `f`
only depends on other reactions (which also behave themselves), the only
difference is one of efficiency. That is, your tests should see no difference
other than that they do redundant work.
source (clj)source (cljs)raw docstring

next-tick

Clojure arglists
(next-tick f)
source (clj)source (cljs)

reagent-id

(reagent-id reactive-val)
Clojure docstring

Doesn't make sense in a Clojure context currently.

Doesn't make sense in a Clojure context currently.
ClojureScript docstring

Produces an id for reactive Reagent values e.g. reactions, ratoms, cursors.

Produces an id for reactive Reagent values
e.g. reactions, ratoms, cursors.
source (clj)source (cljs)raw docstring

set-timeout!

(set-timeout! f ms)
Clojure docstring

Note that we ignore the ms value and just invoke the function, because there isn't often much point firing a timed event in a test.

Note that we ignore the `ms` value and just invoke the function, because
there isn't often much point firing a timed event in a test.
source (clj)source (cljs)raw docstring

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

× close