Interface: SubContainerProviderOptions
Defined in: src/wirestate-lit/provision/sub-container-provider.ts:30
Represents options for SubContainerProvider.
Properties
config
ts
readonly config: {
activate?: ContainerActivation;
entries: readonly (
| Newable<object>
| InjectableDescriptor<unknown, unknown>)[];
seeds?: SeedEntries;
};Defined in: src/wirestate-lit/provision/sub-container-provider.ts:40
Managed child-container creation options.
| Name | Type | Description | Defined in |
|---|---|---|---|
activate? | ContainerActivation | Services to activate (get from container) immediately after binding. Remarks Defaults to true, activating all provided entries. Pass false to skip eager activation, or pass an array to activate specific entries. | src/wirestate-lit/provision/sub-container-provider.ts:53 |
entries | readonly ( | Newable<object> | InjectableDescriptor<unknown, unknown>)[] | List of service entries to bind to the container. | src/wirestate-lit/provision/sub-container-provider.ts:44 |
seeds? | SeedEntries | Seed data to apply to the container before binding. Applied before entries are bound so that @Inject(SEEDS_TOKEN) works during activation. | src/wirestate-lit/provision/sub-container-provider.ts:59 |
Remarks
The child container is created from the current parent context when the host connects, destroyed when the host disconnects, and recreated when the parent context changes or the host reconnects. The provider value is undefined while the host is disconnected.