Constructor
# new SessionState(storageKey)
Creates an instance of SessionState.
Parameters:
Name | Type | Description |
---|---|---|
storageKey |
string
|
The key used to store session state in localStorage. |
Classes
Methods
# load() → {State}
Loads the current session state from localStorage.
The parsed session state or a default state if not found.