Hello Together!
I think the topic has certainly been discussed before, but I think I'm too stupid to find it
I have a function in Nodered.
This is used several times.
If I change this function now, I want the content of all functions to change automatically with it.
I found the function with the library, that works so far, however, I then have to update each function individually.... does this somehow automatically?
Do I have to create a separate node for this?
I would be very grateful for some food for thought
Make a subflow with just that function, and then use the subflow in place of the function nodes in your flow. Then whenever you update the subflow's function it will change them all.
You can now also use the link-call node if you don't want to use a sub-flow. You just put your function node somewhere convenient with a link-in and link-out node attached and then use link-call that will send the inbound msg to the function and return the result.