Skip to main content

Module reactive

Module reactive 

Source

Structs§

HookContext
Manages hook state across render cycles for a DynamicNode.
HookContextCell
A Sync wrapper for single-threaded global HookContextInner access.
HookContextInner
Internal storage for hook state, holding boxed Any values and an index.
Signal
A reactive signal handle.
SignalInner
Inner state of a signal, holding the value and subscribed listeners.

Statics§

CURRENT_HOOK_CONTEXT
Global pointer to the currently active HookContextInner.
DEFAULT_HOOK_CONTEXT
Default empty HookContextInner for the global fallback.

Traits§

IntoCallbackAttribute
Trait for types that can be converted into a callback attribute value.
IntoReactiveValue
Trait for types that can be converted into a reactive string value.

Functions§

create_hook_context
Creates a new HookContext allocated via Box::leak.
trigger_update
Dispatches the global __euv_signal_update__ event on the window.
use_signal
Creates a new reactive signal with the given initial value.
with_hook_context
Runs a closure with the given HookContext set as the active context.