OnReconnect
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;| Name | Type | Default |
|---|---|---|
oldEdge | EdgeType | |
newConnection | Connection |
Last updated on