Interface: ContainerProviderOptions
Defined in: src/wirestate-lit/container/container-provider.ts:18
Describes options for ContainerProvider.
Remarks
Pass either container or config. Passing both is an error.
Properties
config?
readonly optional config?: ContainerConfig;Defined in: src/wirestate-lit/container/container-provider.ts:38
Managed container creation options.
Remarks
The managed container is created when the host connects, disposed when it disconnects, and recreated on the next reconnect. Managed containers activate all bindings by default unless activate is provided explicitly. The provider value is undefined while the host is disconnected.
container?
readonly optional container?: Container;Defined in: src/wirestate-lit/container/container-provider.ts:27
External container instance to provide as-is.
Remarks
External containers are provisioned by this provider while the host is connected. Provision can force-activate handler-bearing services and run provider lifecycle hooks. The provider never recreates or disposes external containers.