(debug-prn reactive-node event-type)
To use: (binding [notify-lifecycle-event debug-prn] ,,,)
To use: (binding [*notify-lifecycle-event* debug-prn] ,,,)
(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.
(dispose this)
Disposes this reactive node.
Disposes this reactive node.
(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.
(-get-has-side-effect this)
(-get-higher-priority-nodes this)
(-get-propagation-filter-fn this)
(-run-on-clean-up-callbacks this)
(-set-value! this new-value)
(-unsubscribe-from-all-signal-sources this)
A protocol for objects added to the context stack.
A protocol for objects added to the context stack.
(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-source this signal-source)
Notifies the current observer that a signal was deref'ed.
Notifies the current observer that a signal was deref'ed.
(add-signal-watcher this signal-watcher)
Registers a signal watcher to this signal source.
Registers a signal watcher to this signal source.
(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-watcher this signal-watcher)
Unregisters a signal watcher from this signal source.
Unregisters a signal watcher from this signal source.
(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`.
(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.
(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})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close