Skip to main content

queue_target_stack_push

Function queue_target_stack_push 

Source
pub(crate) async fn queue_target_stack_push(
    state: &AppState,
    tab_id: &str,
    block_id: &str,
    target_block_id: &str,
) -> Result<(), String>
Expand description

Tell the frontend that block_id was added — already, in the reducer — as the visible tab of the pane holding target_block_id (Command::CreateBlockInStack). Matches LayoutTreeActionType.StackPush = "stackpush" in frontend/layout/lib/types.ts. SPEC_PANE_TABS_REDUCER_COMMANDS_2026_09_18.md §3.3.