euv_core/app/router/struct.rs
1use super::*;
2
3/// Cross-platform reactive navigation router with history stack shared across Web, Mobile, Tablet, and Desktop.
4#[derive(Clone, Data, Debug)]
5pub struct Router {
6 /// Reactive current route path signal.
7 #[get(type(copy))]
8 pub(crate) current: Signal<String>,
9 /// Ordered navigation history stack.
10 #[get(pub(crate))]
11 #[get_mut(pub(crate))]
12 #[set(pub(crate))]
13 pub(crate) history: Vec<String>,
14 /// Current cursor index inside `history`.
15 #[get(type(copy))]
16 pub(crate) cursor: usize,
17}