function onLifecycleConstructing view code
Called just before a constructing lifecycle is returned. The listener callback receives the lifecycle that is constructing.
Listener callbacks are expected to be non-yielding and infallible.
Parameters
listener: (constructedLifecycle: Lifecycle) -> ()
Fired just before a construcing lifecycle is returned. The listener callback receives the lifecyle that is constructing.
Returns
() -> ()
A callback that when called removes the listener.