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

OnNodesDelete

Source on GitHub 

The OnNodesDelete type defines the callback function that is called when nodes are deleted. This callback receives an array of the deleted nodes.

type OnNodesDelete = (nodes: Node[]) => void;
Parameters:
NameTypeDefault
nodesNodeType[]
Returns:
void