OnDelete
The OnDelete type is a callback function that is called when nodes or edges are deleted from the flow. It receives the deleted nodes and edges.
type OnDelete<
  NodeType extends NodeBase = NodeBase,
  EdgeType extends EdgeBase = EdgeBase,
> = ({ nodes, edges }: { nodes: NodeType[]; edges: EdgeType[] }) => void;| Name | Type | Default | 
|---|---|---|
params | { nodes: NodeType[]; edges: EdgeType[]; } | 
Last updated on