Appearance
@shtse8/fluxus / src / ComputedProviderInstance
Interface: ComputedProviderInstance()<T>
Defined in: src/providers/computedProvider.ts:28
Represents an instance of a ComputedProvider. It acts as a Provider<T> for reading the computed value. It carries metadata via a symbol to distinguish it during initialization.
Extends
Provider<T>
Type Parameters
T
T
The type of the computed value.
ComputedProviderInstance(
reader):T
Defined in: src/providers/computedProvider.ts:28
Represents an instance of a ComputedProvider. It acts as a Provider<T> for reading the computed value. It carries metadata via a symbol to distinguish it during initialization.
Parameters
reader
Returns
T
Properties
_fluxus_provider_type
readonly_fluxus_provider_type:"ComputedProvider"
Defined in: src/providers/computedProvider.ts:42
Internal
A read-only property for easier type narrowing if needed.
[$computedProvider]
[$computedProvider]:
object
Defined in: src/providers/computedProvider.ts:30
Internal
A unique symbol used to identify ComputedProvider instances.
compute()
compute: (
reader) =>T
Internal
The computation function provided when the provider was created. This function is called by the Scope during initialization or recomputation.
Parameters
reader
The reader for the current scope.
Returns
T
The computed value.
name?
optionalname:string
An optional name for debugging.