Skip to main content

getState

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/state/core/stateManager / getState

Function: getState()

getState<T>(path?: string): T | AppStateShape | undefined

Defined in: utils/state/core/stateManager.ts:374

Gets state by dot-notation path.

Type Parameters​

T​

T = unknown

Parameters​

path?​

string = ""

Dot-notation path to a state property.

Returns​

T | AppStateShape | undefined

State value at the path, or the root state for an empty path.