Module maple_core::reactive[][src]

Reactive primitives.

Structs

Owner

Owns the effects created in the current reactive scope.

Signal

State that can be set.

StateHandle

Returned by functions that provide a handle to access state.

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 implement PartialEq.

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.