Skip to main content

create_block_in_tab

Function create_block_in_tab 

Source
pub(crate) async fn create_block_in_tab(
    state: &AppState,
    tab_id: &str,
    meta: Value,
    caller: &str,
) -> Result<String, String>
Expand description

A new block in tab_id with meta, through the reducer (never the store alone: a block the reducer does not know cannot be torn off or redocked later). caller starts its messages (“pane.open”, “agent.open”), followed by “: CreateBlock”. The block has no place in the layout yet: placing it is the caller’s next step.