Saves data under a specific stateId. Already existing data for that stateId should be overridden. Asynchronous implementations must return a Promise: Promise and resolve it once saving was completed.
Errors should be handled by the implementation. The SiUIStateService does not handle errors.
Loads and returns the state for the given stateId and version. Returns A Promise containing the state or undefined if the state does not exist or the version did not match.
Parameters
The unique id or key for which the state shall be loaded. stateId: string¶
The version of the state object. This can be used to migrate state objects. version: number = 0¶