Interface IPartionableState<TStoreState>
Interface to implement a store state that can be sliced.
Inherited Members
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public interface IPartionableState<out TStoreState> : IPartionableState
Type Parameters
Name | Description |
---|---|
TStoreState | The type of the store state. |
Methods
Set<TSliceState>(string, TSliceState)
Implementation of the method to set the slice state in the store state.
Declaration
TStoreState Set<TSliceState>(string sliceName, TSliceState sliceState)
Parameters
Type | Name | Description |
---|---|---|
string | sliceName | The name of the slice. |
TSliceState | sliceState | c The slice state. |
Returns
Type | Description |
---|---|
TStoreState | The new store state. |
Type Parameters
Name | Description |
---|---|
TSliceState | The type of the slice state. |
Remarks
It is important to note that this method should return a new instance of the store state to ensure immutability.