TrackedDataSpec

type TrackedDataSpec<TRpcValue, TSubscriptionValue, TItem> = CreateReactiveStoreWithInitialValueAndSlotTrackingConfig<TRpcValue, TSubscriptionValue, TItem>;

React-local alias for the Kit primitive's config. Lets the call site name the input shape as TrackedDataSpec<TRpcValue, TSubscriptionValue, TItem> instead of the verbose CreateReactiveStoreWithInitialValueAndSlotTrackingConfig<...>.

Type Parameters

Type ParameterDescription
TRpcValueThe value inside the initial RPC SolanaRpcResponse envelope.
TSubscriptionValueThe value inside subscription SolanaRpcResponse notifications.
TItemThe unified item type produced by the two mappers and stored in the result.

On this page