Closed yojeek closed 8 months ago
As the hook only applied to the interfaces already present in copiedNode, dynamic interfaces created during load() call will appear broken.
copiedNode
load()
const tapInterfaces = (intfs: Record<string, NodeInterface<any>>) => { Object.values(intfs).forEach((intf) => { intf.hooks.load.subscribe(token, (intfState) => { const newIntfId = uuidv4(); idmap.set(intfState.id, newIntfId); intf.id = newIntfId; intf.hooks.load.unsubscribe(token); return intfState; }); }); }; tapInterfaces(copiedNode.inputs); tapInterfaces(copiedNode.outputs);
Fixed in v2.3.0
As the hook only applied to the interfaces already present in
copiedNode
, dynamic interfaces created duringload()
call will appear broken.