# Life Cycle Events Enhancement

**URL:** https://discourse.nodered.org/t/life-cycle-events-enhancement/76575
**Category:** Feature Requests
**Created:** [15 March 2023 04:06 UTC](https://discourse.nodered.org/t/life-cycle-events-enhancement/76575 "2023-03-15T04:06:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![CanyonCasa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/canyoncasa/32/76453_2.png) [@CanyonCasa](https://discourse.nodered.org/u/CanyonCasa)
#### Post date: [15 March 2023 04:06 UTC](https://discourse.nodered.org/t/life-cycle-events-enhancement/76575/1 "2023-03-15T04:06:56Z")

</div>

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 RED.events) so there isn’t a need to loop eachNode to apply the hook only to nodes of interest.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 May 2023 04:07 UTC](https://discourse.nodered.org/t/life-cycle-events-enhancement/76575/2 "2023-05-14T04:07:42Z")

</div>

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