I am developing a config node X that needs to find a list of other nodes that uses it. This list is needed during config node initialization.
Any convenient way to do it?
Thanks
I am developing a config node X that needs to find a list of other nodes that uses it. This list is needed during config node initialization.
Any convenient way to do it?
Thanks
In the editor or in the runtime?
In runtime, during initialization
Not sure if this is the correct way, but it works.
const configId = this.id;
RED.nodes.eachNode((n) => {
if (n.config === configId) {
// Node `n` is using this config node
}
});
Sounds great!