router_root

Function router_root 

Source
pub fn router_root(root_dest: impl RouterDestination + 'static)
Expand description

Root component that drives the shard router stack each frame.

See module‑level docs for detailed usage patterns.

§Parameters

  • root_dest - The destination pushed only once when the stack is empty.

§Notes

Keep router_root exactly once at the point in your tree that should display the active routed component. Wrapping it multiple times would still execute only one top destination but wastes layout work.