Per-component lifecycle hooks declared by a module for one of its
provided component slots.
eager: When true the boot planner instantiates this component
unconditionally during createApp, even if no other component
declares it as a dependency. Default is false (lazy).
cleanup: Called during app.dispose() in reverse-topological
order. Errors from all cleanup functions are aggregated into an
AggregateError that dispose() rejects with (§6.3).
The K parameter is a ComponentKey; ComponentMap[K] resolves to
the exact value type for that slot, giving cleanup a typed value
parameter.
Per-component lifecycle hooks declared by a module for one of its provided component slots.
eager: Whentruethe boot planner instantiates this component unconditionally duringcreateApp, even if no other component declares it as a dependency. Default isfalse(lazy).cleanup: Called duringapp.dispose()in reverse-topological order. Errors from all cleanup functions are aggregated into anAggregateErrorthatdispose()rejects with (§6.3).The
Kparameter is aComponentKey;ComponentMap[K]resolves to the exact value type for that slot, givingcleanupa typedvalueparameter.Per A2-β §4.1.