LifeCycleEvent is a function that is called on specific life cycle events, usually triggered by user actions
The event that is being triggered
The data associated with the event
Optionally returns modified data, or undefined if no changes were made
LifeCycleEvent is a function that is called on specific life cycle events, usually triggered by user actions