Skip to main content

euv_core/reactive/state/
struct.rs

1use super::*;
2
3/// Scoped reactive local component state automatically disposed on unmount and frozen/resumed with its owning `Scope`.
4#[derive(Debug)]
5pub struct LocalState<T>
6where
7    T: 'static,
8{
9    /// Underlying scope-owned fine-grained signal.
10    pub(crate) signal: Signal<T>,
11}
12
13/// App-wide reactive global state registry supporting type-keyed and named singleton stores plus scope-aware `watch` observers.
14#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
15pub struct GlobalState;