Expand description
Reactive primitives.
Structs§
- Owner
- Owns the effects created in the current reactive scope.
The effects are dropped and the cleanup callbacks are called when the
Owner
is dropped. - Signal
- State that can be set.
- Signal
Vec - A reactive
Vec
. This is more effective than using aSignal<Vec>
because it allows fine grained reactivity within theVec
. - State
Handle - A readonly
Signal
.
Enums§
Functions§
- create_
effect - Creates an effect on signals used inside the effect closure.
- create_
effect_ initial - Creates an effect on signals used inside the effect closure.
- create_
memo - Creates a memoized value from some signals. Also know as “derived stores”.
- create_
root - Creates a new reactive root. Generally, you won’t need this method as it is called automatically in
render
. - create_
selector - Creates a memoized value from some signals. Also know as “derived stores”.
Unlike
create_memo
, this function will not notify dependents of a change if the output is the same. That is why the output of the function must implementPartialEq
. - create_
selector_ with - Creates a memoized value from some signals. Also know as “derived stores”.
Unlike
create_memo
, this function will not notify dependents of a change if the output is the same. - on_
cleanup - Adds a callback function to the current reactive scope’s cleanup.
- untrack
- Run the passed closure inside an untracked scope.