Skip to Content
API referencePulsar CoreSrcComponentscreateTxInMemoryStore()

@tuwaio/pulsar-core-monorepo


createTxInMemoryStore()

createTxInMemoryStore<T>(params): StoreApi<ITxInMemoryStore<T>>

Defined in: packages/pulsar-core/src/store/txInMemoryStore.ts:61 

Creates an in-memory transaction store with synchronized local and remote sources.

The store is designed to:

  • keep a local transaction pool in sync with remote history
  • preserve terminal transaction states
  • support paginated history loading
  • avoid duplicated merge logic across store actions

Type Parameters

T

T extends Transaction

The transaction type.

Parameters

params

ITxInMemoryStoreParameters<T>

Store configuration parameters.

Returns

StoreApi<ITxInMemoryStore<T>>

A Zustand vanilla store instance for in-memory transaction management.

Last updated on