File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -276,9 +276,11 @@ export interface ReducerHandlingContextMethods<State> {
276276}
277277
278278export interface ReducerDetails {
279+ /** The name of the slice */
280+ sliceName : string
279281 /** The key the reducer was defined under */
280282 reducerName : string
281- /** The predefined action type, i.e. `${slice.name }/${reducerName}` */
283+ /** The predefined action type, i.e. `${sliceName }/${reducerName}` */
282284 type : string
283285}
284286
@@ -1106,6 +1108,7 @@ export function buildCreateSlice<
11061108 throw new Error ( `Unsupported reducer type: ${ String ( type ) } ` )
11071109 }
11081110 const reducerDetails : ReducerDetails = {
1111+ sliceName : name ,
11091112 reducerName,
11101113 type : getType ( name , reducerName ) ,
11111114 }
@@ -1116,6 +1119,7 @@ export function buildCreateSlice<
11161119 options . reducers as SliceCaseReducers < State > ,
11171120 ) ) {
11181121 const reducerDetails : ReducerDetails = {
1122+ sliceName : name ,
11191123 reducerName,
11201124 type : getType ( name , reducerName ) ,
11211125 }
You can’t perform that action at this time.
0 commit comments