euv-core 0.48.2

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
16
17
use super::*;

/// Cross-platform reactive navigation router with history stack shared across Web, Mobile, Tablet, and Desktop.
#[derive(Clone, Data, Debug)]
pub struct Router {
    /// Reactive current route path signal.
    #[get(type(copy))]
    pub(crate) current: Signal<String>,
    /// Ordered navigation history stack.
    #[get(pub(crate))]
    #[get_mut(pub(crate))]
    #[set(pub(crate))]
    pub(crate) history: Vec<String>,
    /// Current cursor index inside `history`.
    #[get(type(copy))]
    pub(crate) cursor: usize,
}