Skip to Content
React Flow 13 is here! Read the announcement →

OnDelete

Source on GitHub 

The OnDelete type defines the callback function that is called when nodes or edges are deleted. This callback receives an object containing the deleted nodes and edges.

type OnDelete = (params: { nodes: Node[]; edges: Edge[] }) => void;
Parameters:
NameTypeDefault
params{ nodes: NodeType[]; edges: EdgeType[]; }
Returns:
void