Constructor
new State(dataId)
Parameters:
Name | Type | Description |
---|---|---|
dataId | string | The associated data id. |
- Source
Classes
Methods
apply(app, data)
Load an application state from JSON.
Parameters:
Name | Type | Description |
---|---|---|
app | App | The app to apply the state to. |
data | object | The state data. |
- Source
fromJSON(json) → {object}
Load an application state from JSON.
Parameters:
Name | Type | Description |
---|---|---|
json | string | The state as a JSON string. |
- Source
Returns:
The state object.
- Type:
- object