How to track dependencies between nodes

    RED.events.on('nodes:remove', function(node) {
        if ( node.type === 'uibuilder') {
            mylog('>> nodes:remove >>', node)
            delete editorInstances[node.id]
        }
    })

:slight_smile:

I think the id's are UUID's? So they should be pretty unique, at least within a specific flow file. I don't know for sure though.

When you import, if there is a clash, I think that node-red sorts out the ID's. In which situations would Node IDs change ? Import or any other as well? - General - Node-RED Forum (nodered.org)

Sounds like some testing is in order! :slight_smile:

RED.events : Node-RED (nodered.org)