initializeTxTrackingStore()
initializeTxTrackingStore<
T>(params):StoreSlice<IInitializeTxTrackingStore<T>>
Defined in: store/initializeTxTrackingStore.ts:39
Creates the core slice of the transaction store: transactionsPool, initialTx, unsyncedTxKeys and the actions
that change them. createPulsarStore uses it; call it directly only to compose a custom Zustand store.
The slice keeps its state in memory; persistence is added by the store that uses it.
Type Parameters
T
T extends Transaction
The application transaction type.
Parameters
params
Pick<PulsarAdapter<T>, "onRemoteCreate"> & object
The slice options.
Returns
StoreSlice<IInitializeTxTrackingStore<T>>
A slice creator for Zustand’s create / createStore.
Last updated on