Skip to Content
参考类型

OnReconnect

GitHub上的源代码 

OnReconnect 类型表示一个回调函数,当现有的边重新连接到不同的节点或句柄时会被调用。它接收旧的边和新的连接详情。

🌐 The OnReconnect type represents a callback function that is called when an existing edge is reconnected to a different node or handle. It receives the old edge and the new connection details.

type OnReconnect<EdgeType extends EdgeBase = EdgeBase> = ( oldEdge: EdgeType, newConnection: Connection, ) => void;
Parameters:
NameTypeDefault
oldEdgeEdgeType
newConnectionConnection
Returns:
void
Last updated on