mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-16 16:58:33 +00:00
The linkStore is the single source for input-slot connectivity. Readers use node.isInputConnected / node.getInputLink or the slotLinks input helpers; NodeInputSlot.link is a deprecation-telemetry accessor: reads warn and return the store-derived id, writes warn naming connect()/disconnectInput() and are ignored. Serialization derives inputs[].link from the store; wire format unchanged. Store re-keying is authoritative: moving a registered link evicts any incumbent under the new key, so slot permutations cannot drop links; first-wins placement remains only for load-time registration, which duplicate-link dedup depends on. dynamicWidgets rebuilds capture one at-rest slot-to-link snapshot and reconcile once at the end. fixLinkInputSlots is replaced by realignInputLinkSlots inside LGraph.configure, reading the effective (possibly deduplicated-clone) node data. disconnectOutput's duplicated branches collapse into one per-link loop that removes the store entry before onConnectionsChange fires. 'link' in slot discriminators are deleted in favor of direction threading; _setConcreteSlots writes wrappers back into node inputs/outputs so identity-based lookups hold; addInput/addOutput drop legacy link/links keys from extra_info. First-party code no longer touches either deprecated mirror.