Expand description
Stack-based routing utilities for shard components.
Each #[shard] function generates a *Destination type that implements
RouterDestination. These destinations are managed in a LIFO stack.
§Responsibilities
- Maintain an ordered stack (
route_stack) of active destinations - Expose
Router::push/Router::pophelpers that also manage shard state lifetimes - Remove per‑shard state from the registry when a destination whose lifecycle is
ShardStateLifeCycle::Shardis popped - Keep routing logic minimal; rendering happens when the top destination’s
exec_component()is invoked every frame byrouter_root
§Related
#[shard]macro – generates the*Destinationstructs + optional state injectiontessera_ui::router::router_root– executes the current top destination each frame
Structs§
Traits§
- Router
Destination - A navigation destination produced automatically by the
#[shard]macro.