StartCallback<TStores> typedef

StartCallback<TStores> = FutureOr<void> Function(FeatureScopeApi<TStores> api, Cleanup cleanup)

Per-activation callback run by AppContainer on inactive→active transitions. The user registers teardown via cleanup.add(disposer) — all registered disposers run in LIFO order on deactivation.

Implementation

typedef StartCallback<TStores> =
    FutureOr<void> Function(FeatureScopeApi<TStores> api, Cleanup cleanup);