Skip to main content

seed_blocks

Function seed_blocks 

Source
async fn seed_blocks(
    state: &AppState,
    tab_id: &str,
    seed_view: Option<&str>,
    seed_meta: Option<&Value>,
) -> (Vec<String>, Vec<Event>)
Expand description

Dispatches the seed block(s) through the reducer: the seed_view alone (with seed_meta when given), or the default agent, swarm and sysinfo. For the default 3-pane case, order is the one default_three_pane_tree expects positionally (agent, swarm, sysinfo) — NOT top-to-bottom display order, since sysinfo renders above swarm. Returns the ids made and their events; a block that can’t be made ends the seeding (the tab opens with what there is).