Liking cljdoc? Tell your friends :D

reflet.core

cljs

Reflet API and convenience utilities.

Reflet API and convenience utilities.
raw docstring

cleanupcljsmultimethod

Dispatches on the ref's unique attribute.

Dispatches on the ref's unique attribute.
sourceraw docstring

cleanup-interceptorscljs

source

clear-stale-vars!clj/smacro

(clear-stale-vars!)

Clear stale descriptions during hot-reloading. Not needed for production builds. Currently only works with shadow-cljs.

Clear stale descriptions during hot-reloading. Not needed for
production builds. Currently only works with shadow-cljs.
sourceraw docstring

clear-stale-vars-impl!clj/smacro

(clear-stale-vars-impl!)

Do not call directly.

Do not call directly.
sourceraw docstring

debounced-eventscljs

source

debug-contextclj

(debug-context env opts)
source

debug?cljs

(debug?)

Returns true if debugging is activated.

Returns true if debugging is activated.
sourceraw docstring

desccljs

(desc query-v)
source

dispcljs

source

disp-debouncedcljs

(disp-debounced {[id :as event] :dispatch ms :ms})

Debounces dispatched events by id.

Debounces dispatched events by id.
sourceraw docstring

disp-synccljs

source

onceclj/smacro

(once & forms)
source

prevent-defaultcljs

(prevent-default f)
source

props-did-update-handlercljs

(props-did-update-handler f)

Given an update handler, f, returns a componentDidUpdate lifecycle handler function that will invoke the provided fn with old and new component props when they change. The given handler, f ,must be a function of two arguments, the old props value, and the new props value. Careful, other lifecycles have different signatures with respect to new and old values during an update, and are not interchangeable.

Given an update handler, f, returns a componentDidUpdate lifecycle
handler function that will invoke the provided fn with old and new
component props when they change. The given handler, f ,must be a
function of two arguments, the old props value, and the new props
value. Careful, other lifecycles have different signatures with
respect to new and old values during an update, and are not
interchangeable.
sourceraw docstring

props-handlercljs

(props-handler f)

Given an update handler, f, that accepts a single component argument, returns lifecycle handler function that will invoke the provided fn with component props. Careful, other lifecycles have different signatures with respect to new and old values during an update, and are not interchangeable.

Given an update handler, f, that accepts a single component argument,
returns lifecycle handler function that will invoke the provided fn
with component props. Careful, other lifecycles have different
signatures with respect to new and old values during an update, and
are not interchangeable.
sourceraw docstring

pull-fxcljsmultimethod

source

pull-reactioncljs

(pull-reaction [id :as query-v])
(pull-reaction expr-fn query-v)
source

reflet-interceptorscljs

source

reg-compcljs

(reg-comp id comp-ids)

Composes a series of named, graph reactions, where the result of each reaction in the sequence is provided as input to the next. Semantics are similar to clojure.core/comp. Except for the first, every other reaction in the pipeline should expect only a single argument. As with comp, the order of operations is reversed from the order in which they are declared. The resultant reaction returned by the composition is cached according to the input arguments of the pipeline. No intermediary reactions are cached. Does not currently work with entity descriptions.

Composes a series of named, graph reactions, where the result of each
reaction in the sequence is provided as input to the next. Semantics
are similar to `clojure.core/comp`. Except for the first, every
other reaction in the pipeline should expect only a single
argument. As with comp, the order of operations is reversed from the
order in which they are declared. The resultant reaction returned by
the composition is cached according to the input arguments of the
pipeline. No intermediary reactions are cached. Does not currently
work with entity descriptions.
sourceraw docstring

reg-descclj/smacro

(reg-desc id desc)

Registers an entity description. See wiki for full details. Macro prevents list evaluation, part of the grammar for pull fx. Registers a var symbol for each description so that stale descriptions can be removed on hot reload.

Registers an entity description. See wiki for full details. Macro
prevents list evaluation, part of the grammar for pull fx. Registers
a var symbol for each description so that stale descriptions can be
removed on hot reload.
sourceraw docstring

reg-desc-implcljs

(reg-desc-impl id desc)

Do not use, see reg-desc macro.

Do not use, see reg-desc macro.
sourceraw docstring

reg-event-ctxcljs

(reg-event-ctx id handler)
(reg-event-ctx id interceptors handler)
source

reg-event-dbcljs

(reg-event-db id handler)
(reg-event-db id interceptors handler)
source

reg-event-fxcljs

(reg-event-fx id handler)
(reg-event-fx id interceptors handler)
source

reg-no-opcljs

(reg-no-op & ids)

Convenience function for declaring no-op events.

Convenience function for declaring no-op events.
sourceraw docstring

reg-pullclj/smacro

(reg-pull & [id [_ bindings & spec] result-fn])

Registers a named pull query. Semantics are similar to Datomic pull, but with link and attribute queries. See wiki for full details. Macro prevents list evaluation, part of the grammar for pull fx.

Registers a named pull query. Semantics are similar to Datomic pull,
but with link and attribute queries. See wiki for full
details. Macro prevents list evaluation, part of the grammar for
pull fx.
sourceraw docstring

reg-pull-implcljs

(reg-pull-impl id expr-fn)
(reg-pull-impl id expr-fn result-fn)

Do not use, see reg-pull macro.

Do not use, see reg-pull macro.
sourceraw docstring

reg-subcljs

source

reg-sub-rawcljs

source

remove-desccljs

(remove-desc id)

Manually removes a descriptions from the global description registry. Similar to clojure.core/remove-method. If you're using shadow-cljs and have configured hot-reloading as described in the description wiki, Reflet will automatically clear stale descriptions and you should never have to use this function. This should also be unnecessary in production builds.

Manually removes a descriptions from the global description
registry. Similar to clojure.core/remove-method. If you're using
shadow-cljs and have configured hot-reloading as described in the
description wiki, Reflet will automatically clear stale descriptions
and you should never have to use this function. This should also be
unnecessary in production builds.
sourceraw docstring

result-reactioncljs

(result-reaction input-r [id :as query-v])
source

shadow-cljs?clj

(shadow-cljs?)
source

stop-propcljs

(stop-prop f)
source

subcljs

source

with-refclj/smacro

(with-ref bindings & body)

Generates entity references. Optionally rebinds props attributes, and dispatches entity cleanup. See the Reflet wiki for motivation, usage and documentation of other options.

Generates entity references. Optionally rebinds props attributes,
and dispatches entity cleanup. See the Reflet wiki for motivation,
usage and documentation of other options.
sourceraw docstring

with-ref*clj/smacro

(with-ref* bindings & body)

Like with-ref but with debug implicitly disabled. Used to implement the debug UI. Not for public use: throws an error if used outside of a reflet.debug.* namespace.

Like with-ref but with debug implicitly disabled. Used to implement
the debug UI. Not for public use: throws an error if used outside of
a reflet.debug.* namespace.
sourceraw docstring

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

× close