I would like to urge future readers stumbling across this thread to read this post before adopting the strategy marked as the “solution” here.
I consider manually calling lifecycle events an antipattern, as a violation of the principle of least surprise. Additionally, anything that can be done with Event
s can be done better in many ways (more expressive, less prone to typos, more self-documenting, more accurately targeted) with Observable
s.