Expand description
Scoped stack-based routing utilities for shard components.
Each #[shard] function generates a *Destination type that implements
RouterDestination. Destinations are stored in a per-scope LIFO stack.
§Responsibilities
- Maintain an ordered stack (
route_stack) of active destinations. - Expose push/pop/replace/reset helpers for scoped navigation.
- Host
scope/routeshard states inside the router instance. - Trigger route-scoped shard-state cleanup when routes are discarded.
Structs§
- Router
Controller - Reactive navigation controller for one shard tree.
Traits§
- Router
Destination - A navigation destination produced by the
#[shard]macro.