Skip to main content

Function: updateState()

function 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