Life Cycle Events Enhancement

VueJS offers “life cycle” hooks, before create, created, before mount, mounted, …, that allow intercepting component rendering and functionality. It would be useful to add similar life cycle events for (custom) nodes. I recently had need to take action after the flow/node startup. The only event hook I found was “runtime-start”, I assume undocumented as I only found it by searching source. This probably not the right use for this event but it was the only hook I found that worked. It would helpful to document runtime-start as well as adding more granularity, such as deploy, flow starting, flow started, node rendered, flow stopping, flow stopped. I suggest making (at least some) hooks node specific (i.e. node.on() vs so there isn’t a need to loop eachNode to apply the hook only to nodes of interest.

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