Skip to main content

derive_node_id

Function derive_node_id 

Source
pub fn derive_node_id(action_id: &str, n: u32) -> String
Expand description

The id of the nth node (from 1) an intent creates: the action id with its first eight hex digits replaced by n, or <action id>-<n> when the action id isn’t a UUID. The frontend derives the same ids (deriveNodeId, layoutNode.ts), so the branches both sides create are named alike.