Module maple_core::prelude[][src]

The maple prelude.

Re-exports

pub use crate::flow::Indexed;
pub use crate::flow::IndexedProps;
pub use crate::flow::Keyed;
pub use crate::flow::KeyedProps;
pub use crate::noderef::NodeRef;
pub use crate::reactive::create_root;
pub use crate::render::Render;
pub use crate::render;
pub use crate::render;
pub use crate::render_to;
pub use crate::TemplateList;
pub use crate::TemplateResult;

Macros

cloned

Utility macro for cloning all the arguments and expanding the expression.

template

A macro for ergonomically creating complex UI structures.

Structs

Signal

State that can be set.

SignalVec

A reactive Vec. This is more effective than using a Signal<Vec> because it allows fine grained reactivity within the Vec.

StateHandle

A readonly Signal.

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

on_cleanup

Adds a callback function to the current reactive scope’s cleanup.

untrack

Run the passed closure inside an untracked scope.