Crate floem_reactive

Crate floem_reactive 

Source
Expand description

§Floem Reactive

RwSignal::new_split returns a separated ReadSignal and WriteSignal for a variable. An existing RwSignal may be converted using RwSignal::read_only and RwSignal::write_only where necessary, but the reverse is not possible.

Structs§

BaseSignal
BaseSignal gives you another way to control the lifetime of a Signal apart from Scope.
GetUpdateFn
Memo
Memo computes the value from the closure on creation, and stores the value.
ReadSignal
A getter only Signal
ReadSignalValue
RwSignal
A read write Signal which can act as both a Getter and a Setter
Scope
You can manually control Signal’s lifetime by using Scope.
Trigger
WriteSignal
A setter only Signal
WriteSignalValue

Traits§

SignalGet
SignalRead
SignalTrack
SignalUpdate
SignalWith
SignalWrite

Functions§

as_child_of_current_scope
Wrap the closure so that whenever the closure runs, it will be under a child Scope of the current Scope
batch
create_base_signal
create_effect
Create an Effect that runs the given function whenever the Signals that subscribed to it in the function.
create_get_update
create_memo
Create a Memo which takes the computed value of the given function, and triggers the reactive system when the computed value is different with the last computed value.
create_rw_signal
Creates a new RwSignal which can act both as a setter and a getter.
create_signal
Creates a new setter and getter Signal.
create_stateful_updater
Create an effect updater that runs on_change when any signals compute subscribes to changes. compute is immediately run and its return value is returned from create_updater.
create_trigger
create_updater
Create an effect updater that runs on_change when any signals compute subscribes to changes. compute is immediately run and its return value is returned from create_updater.
provide_context
Sets a context value to be stored in the reactive system. The stored context value can be retrieved from anywhere by using use_context
untrack
Signals that’s wrapped this untrack will not subscribe to any effect
use_context
Try to retrieve a stored Context value in the reactive system. You can store a Context value anywhere, and retrieve it from anywhere afterwards.
with_scope
Runs the given code with the given Scope