Skip to main content

updateState

FitFileViewer - API Documentation v30.0.1


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

Function: updateState()

updateState(path: string, updates: Record<string, unknown>, options?: StateUpdateOptions): void

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

Updates state by merging an object into an existing object value.

Parameters​

path​

string

Dot-notation path to a state property.

updates​

Record<string, unknown>

Object updates to merge.

options?​

StateUpdateOptions = {}

Optional update behavior.

Returns​

void