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.
- Immediate
Effect - Effects run a certain chunk of code whenever the signals they depend on change.
- NoParam
- Marker for no parameter functions
- Render
Effect - A render effect is similar to an
Effect, but with two key differences: - Single
Param - Marker for single parameter functions
Traits§
- Effect
Function - 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_
effect Deprecated - Creates an
Effect. - create_
render_ effect Deprecated - Creates a new render effect, which immediately runs
fun. - in_
effect_ scope - Returns whether the current thread is currently running an effect.
- watch
Deprecated - Creates an
Effect, equivalent to Effect::watch.