Skip to content

frontend-web-editor


Function: default()

default(clickedNodeId): () => void

Defined in: app/hooks/eventTree/useCreateNodeClick.ts:32

Create a branch of nodes starting from a clicked node in the Event Tree.

Adds a chain of nodes and connecting edges to the right of the clicked node, optionally generating end-state nodes (Sequence ID, Frequency, Release Category) when the chain reaches or exceeds the input depth. The function updates the React Flow state, recalculates frequencies, and persists the updated graph.

Parameters

clickedNodeId

string

The id of the node where the new branch should be inserted.

Returns

A function that performs the mutation when invoked.

(): void

Returns

void