Method GetState
GetState<TState>(string)
Returns the current state tree of your application for a specific slice. It is equal to the last value returned by the store's reducer.
Declaration
public TState GetState<TState>(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the state slice. |
Returns
Type | Description |
---|---|
TState | The current state tree of your application. |
Type Parameters
Name | Description |
---|---|
TState | The type of the state. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the state slice does not exist. |
GetState()
Returns the current state tree of your application. It is equal to the last value returned by the store's reducer.
Declaration
public Dictionary<string, object> GetState()
Returns
Type | Description |
---|---|
Dictionary<string, object> | The current state tree of your application. |