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