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