Module maple_core::reactive[][src]

Reactive primitives.

Functions

create_effect

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_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_signal

Creates a new signal. The function will return a pair of getter/setters to modify the signal and update corresponding dependencies.

untracked

Prevents tracking dependencies inside the closure. If called outside a reactive context, does nothing.

Type Definitions

SetStateHandle

Returned by functions that provide a closure to modify state.

StateHandle

Returned by functions that provide a handle to access state.