Liking cljdoc? Tell your friends :D

reacl-basics.subs.core


clear-subscljs

(clear-subs target)
source

concurrentcljs

(concurrent & subs)

Returns a subscribable that yields a vector of the values of all the given subs in the same order.

Returns a subscribable that yields a vector of the values of all
the given subs in the same order.
sourceraw docstring

indexedcljs

(indexed & subs)

Returns a subscribable that yields the values of all of the given subs as they come in, as a tuple [idx value] with the position of the corresponding sub.

Returns a subscribable that yields the values of all of the given
subs as they come in, as a tuple `[idx value]` with the position of
the corresponding sub.
sourceraw docstring

mapcljs

(map sub f & args)

Returns a subscribable that yields the same values as sub, but piped through (f value & args).

Returns a subscribable that yields the same values as `sub`, but piped through `(f value & args)`.
sourceraw docstring

serializedcljs

(serialized & subs)

Returns a subscribable that yields the values of the given subs as they come in.

Returns a subscribable that yields the values of the given
subs as they come in.
sourceraw docstring

simplecljs

(simple make-unsub-action make-sub-action & sub-args)

Returns a subscribable based on the given functions that make subscribe and unsubscribe actions. Extra arguments are appended only to the call to make-sub-action.

Returns a subscribable based on the given functions that make
subscribe and unsubscribe actions. Extra arguments are appended only
to the call to `make-sub-action`.
sourceraw docstring

sliding-windowcljs

(sliding-window sub size)

Returns a subscribable on a vector of the most recent size values of sub. The newest value will be last. Initially the vector is padded with nils.

Returns a subscribable on a vector of the most recent `size`
values of `sub`. The newest value will be last. Initially the vector
is padded with nils.
sourceraw docstring

subs-handlercljs

(subs-handler content)

A non-app-state wrapper class that handles the subscription actions update-subs and clear-subs.

A non-app-state wrapper class that handles the subscription actions [[update-subs]] and [[clear-subs]].
sourceraw docstring

subscribablecljs

(subscribable make-unsub-action make-sub-action & args)

Returns a subscribable based on the given functions that make subscribe and unsubscribe actions. Extra arguments are appended to both calls to those function.

Returns a subscribable based on the given functions that make
subscribe and unsubscribe actions. Extra arguments are appended to
both calls to those function.
sourceraw docstring

subscribable?cljs

(subscribable? v)

Returns true if the given value is a subscribable.

Returns true if the given value is a subscribable.
sourceraw docstring

subscribe-tocljs

(subscribe-to sub f & args)

A non-app-state class that subscribes to the given subscribable sub as long as it's mounted, and and renders as (f value & args) where value is the most recent value from the subscription, or nil initially.

A non-app-state class that subscribes to the
given subscribable `sub` as long as it's mounted, and and renders as `(f
value & args)` where `value` is the most recent value from the
subscription, or `nil` initially.
sourceraw docstring

update-subscljs

(update-subs target subs-map)
source

voidcljs

A subscribable that never yields a value.

A subscribable that never yields a value.
sourceraw docstring

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

× close