Skip to main content

shard_home

Function shard_home 

Source
pub fn shard_home() -> ShardHomeBuilder
Expand description

§shard_home

Provide a router controller and render shard UI rooted at the active destination.

§Usage

Mount the root route for an app shell. On Android, system back pops one route and a predictive gesture previews the previous route. Android handles back at the root of the stack.

§Parameters

  • root — initial destination used when controller is omitted
  • controller — optional external router controller state

§Examples

use tessera_shard::shard_home;

shard_home().root(DemoDestination);