Interface: OptionalInjectionOptions<T, F>
Defined in: src/wirestate-lit/consumption/optional-injection.ts:36
Represents options for optionalInjection.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | - |
F | null |
Properties
injectionId
ts
injectionId: ServiceIdentifier<T>;Defined in: src/wirestate-lit/consumption/optional-injection.ts:40
The service identifier to inject.
once?
ts
optional once?: boolean;Defined in: src/wirestate-lit/consumption/optional-injection.ts:48
Resolve only the first context value.
Remarks
If true, the property will not update when the container context changes. Defaults to false.
onFallback?
ts
optional onFallback?: OptionalInjectionFallback<F>;Defined in: src/wirestate-lit/consumption/optional-injection.ts:52
Provides a value when the service identifier is not bound.