"onDeploy" callback at the node level

Hi,
I am new Node-red, I have a requirement where in I need to do some processing in each custom node, when the node is deployed successfully. I don't see any callback on Deploy. at the node level. Could you please guide me on this.

Hi @Pavithra_nayak

whenever a new set of flows are deploy all of the existing node objects are discarded and new node objects created. So your node constructor will be called to create those new instances.

If the user does a modified-nodes/flows type of deploy, then any unmodified nodes will not be touched and will not know the deploy is happening.

Thanks for the reply. The solution works for me.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.