Module effect

Module effect 

Source
Expand description

Side effects that run in response to changes in the reactive values they read from.

Structs§

Effect
Effects run a certain chunk of code whenever the signals they depend on change.
ImmediateEffect
Effects run a certain chunk of code whenever the signals they depend on change.
NoParam
Marker for no parameter functions
RenderEffect
A render effect is similar to an Effect, but with two key differences:
SingleParam
Marker for single parameter functions

Traits§

EffectFunction
Trait to enable effect functions that have zero or one parameter

Functions§

batch
Defers any ImmediateEffects from running until the end of the function.
create_effectDeprecated
Creates an Effect.
create_render_effectDeprecated
Creates a new render effect, which immediately runs fun.
in_effect_scope
Returns whether the current thread is currently running an effect.
watchDeprecated
Creates an Effect, equivalent to Effect::watch.