Skip to main content

SliceParent Interface

The SliceParent is the interface that describes the parent property in the options argument of createSlice and createSliceGroup.

interface SliceParent {  addReducers: AddReducers;  path: string;}

addReducers#

A function that child Slices and SliceGroups can use to add their reducer to parent reducer.

path#

A string expressing the location of the parent inside the store state object.