Liking cljdoc? Tell your friends :D

signaali.reactive


*notify-lifecycle-event*clj/s

source

create-derivedclj/s

(create-derived run-fn)
(create-derived run-fn options)
source

create-effectclj/s

(create-effect run-fn)
(create-effect run-fn options)
source

create-memoclj/s

(create-memo run-fn)
(create-memo run-fn options)
source

create-signalclj/s

(create-signal value)
(create-signal value options)
source

create-stateclj/s

(create-state value)
(create-state value options)
source

debug-prnclj/s

(debug-prn reactive-node event-type)

To use: (binding [notify-lifecycle-event debug-prn] ,,,)

To use: (binding [*notify-lifecycle-event* debug-prn] ,,,)
sourceraw docstring

enlist-stale-effectful-nodeclj/s

(enlist-stale-effectful-node node)
source

get-current-observerclj/s

(get-current-observer)
source

IReactiveNodeclj/sprotocol

add-on-dispose-callbackclj/s

(add-on-dispose-callback this callback)

Registers a callback to be called when the reactive node is disposed. Those callbacks will be called in the same order they were registered.

Registers a callback to be called when the reactive node is disposed.
Those callbacks will be called in the same order they were registered.

disposeclj/s

(dispose this)

Disposes this reactive node.

Disposes this reactive node.

run-afterclj/s

(run-after this higher-priority-node)

Tells the system that this reactive node should run after another one, if both have to run during the same update batch.

Tells the system that this reactive node should run after another one,
if both have to run during the same update batch.
source

IReactiveNodeInternalsclj/sprotocol

-get-has-side-effectclj/s

(-get-has-side-effect this)

-get-higher-priority-nodesclj/s

(-get-higher-priority-nodes this)

-get-propagation-filter-fnclj/s

(-get-propagation-filter-fn this)

-run-on-clean-up-callbacksclj/s

(-run-on-clean-up-callbacks this)

-set-value!clj/s

(-set-value! this new-value)

-unsubscribe-from-all-signal-sourcesclj/s

(-unsubscribe-from-all-signal-sources this)
source

IRunObserverclj/sprotocol

A protocol for objects added to the context stack.

A protocol for objects added to the context stack.

add-clean-up-callbackclj/s

(add-clean-up-callback this callback)

Notifies the current observer that a clean-up callback want to register on it. Those callbacks will be called in reverse order when the node is cleaned up.

Notifies the current observer that a clean-up callback want to register on it.
Those callbacks will be called in reverse order when the node is cleaned up.

notify-deref-on-signal-sourceclj/s

(notify-deref-on-signal-source this signal-source)

Notifies the current observer that a signal was deref'ed.

Notifies the current observer that a signal was deref'ed.
sourceraw docstring

ISignalSourceclj/sprotocol

add-signal-watcherclj/s

(add-signal-watcher this signal-watcher)

Registers a signal watcher to this signal source.

Registers a signal watcher to this signal source.

notify-signal-watchersclj/s

(notify-signal-watchers this is-for-sure)

Notifies signal watchers that a signal source might have emitted a signal. The boolean is-for-sure will be false when the signal source will need to be run in order to know if it really propagated the signal. It can happen if propagation-filter-fn is defined on it.

Notifies signal watchers that a signal source might have emitted a signal.
The boolean is-for-sure will be false when the signal source will need to be run
in order to know if it really propagated the signal.
It can happen if `propagation-filter-fn` is defined on it.

remove-signal-watcherclj/s

(remove-signal-watcher this signal-watcher)

Unregisters a signal watcher from this signal source.

Unregisters a signal watcher from this signal source.

run-if-neededclj/s

(run-if-needed this)

Run this node if it needs to. It typically happens when the signal source has run-fn defined and if its status is not :up-to-date.

Run this node if it needs to. It typically happens when the signal source has `run-fn` defined
and if its status is not `:up-to-date`.
source

ISignalWatcherclj/sprotocol

notify-signal-watcherclj/s

(notify-signal-watcher this is-for-sure signal-source)

Notifies a signal watcher that a signal source might have emitted a signal. The boolean is-for-sure will be false when the signal source will need to be run in order to know if it really propagated the signal. It can happen if propagation-filter-fn is defined on it.

Notifies a signal watcher that a signal source might have emitted a signal.
The boolean is-for-sure will be false when the signal source will need to be run
in order to know if it really propagated the signal.
It can happen if `propagation-filter-fn` is defined on it.
source

make-reactive-nodeclj/s

(make-reactive-node {:keys [value run-fn signal-sources propagation-filter-fn
                            has-side-effect dispose-on-zero-signal-watchers
                            on-dispose-callback metadata]
                     :as options})
source

notify-lifecycle-eventclj/smacro

(notify-lifecycle-event reactive-node event-type)
source

on-clean-upclj/s

(on-clean-up callback)
source

re-run-stale-effectful-nodesclj/s

(re-run-stale-effectful-nodes)
source

unlist-stale-effectful-nodeclj/s

(unlist-stale-effectful-node node)
source

with-observerclj/s

(with-observer observer body-fn)
source

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

× close