Skip to Content

OnInit

Source on GitHub 

The OnInit type defines the callback function that is called when the ReactFlow instance is initialized. This callback receives the ReactFlow instance as its argument.

type OnInit = (reactFlowInstance: ReactFlowInstance) => void;
Parameters:
NameTypeDefault
reactFlowInstanceReactFlowInstance<NodeType, EdgeType>
Returns:
void
Last updated on