euv-core 0.46.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

/// Scoped reactive local component state automatically disposed on unmount and frozen/resumed with its owning `Scope`.
#[derive(Debug)]
pub struct LocalState<T>
where
    T: 'static,
{
    /// Underlying scope-owned fine-grained signal.
    pub(crate) signal: Signal<T>,
}

/// App-wide reactive global state registry supporting type-keyed and named singleton stores plus scope-aware `watch` observers.
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub struct GlobalState;