Skip to main content

Application

Overview

This is our Application's store. Here we can manage differents flags used by "Mint"

info

This store provide basic features you can easly inherits to create your own application's store

Basic features

update()

Updates the application state with the provided state properties.

update(state: Partial<ApplicationState>): void
ParameterTypeDescription
statePartial<ApplicationState>The partial state object containing properties to update.

updateReadyState()

Updates the ready state of the application store.

updateReadyState(value: boolean = true): void
ParameterTypeDescription
valuebooleanOptional. The ready state to set. Defaults to true.

Extracts features

extractsCount

Get the extracts count.

updateExtracts()

Updates the extracts for a given ID in the application store.

updateExtracts(id: string, extracts: Extract[]): void
ParameterTypeDescription
idstringThe ID of the extracts to update.
extractsExtract[]The extracts to set for the given ID.

getExtracts()

Retrieves extracts from the store based on the provided ID.

getExtracts(id: string): Extract[]
ParameterTypeDescription
idstringThe ID of the extracts to retrieve.