Skip to main content

Function: resetState()

function resetState(path?: string): void;

Defined in: utils/state/core/stateManagerReset.ts:21

Resets state to initial values.

When a path is provided, only that leaf is removed. Without a path, the full state is reset using the legacy reset shape.

Parameters​

path?​

string

Optional path to reset only part of state.

Returns​

void