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> {
276
276
}
277
277
278
278
export interface ReducerDetails {
279
+ /** The name of the slice */
280
+ sliceName : string
279
281
/** The key the reducer was defined under */
280
282
reducerName : string
281
- /** The predefined action type, i.e. `${slice.name }/${reducerName}` */
283
+ /** The predefined action type, i.e. `${sliceName }/${reducerName}` */
282
284
type : string
283
285
}
284
286
@@ -1106,6 +1108,7 @@ export function buildCreateSlice<
1106
1108
throw new Error ( `Unsupported reducer type: ${ String ( type ) } ` )
1107
1109
}
1108
1110
const reducerDetails : ReducerDetails = {
1111
+ sliceName : name ,
1109
1112
reducerName,
1110
1113
type : getType ( name , reducerName ) ,
1111
1114
}
@@ -1116,6 +1119,7 @@ export function buildCreateSlice<
1116
1119
options . reducers as SliceCaseReducers < State > ,
1117
1120
) ) {
1118
1121
const reducerDetails : ReducerDetails = {
1122
+ sliceName : name ,
1119
1123
reducerName,
1120
1124
type : getType ( name , reducerName ) ,
1121
1125
}
You can’t perform that action at this time.
0 commit comments