We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86a6d5 commit 52d8d12Copy full SHA for 52d8d12
packages/toolkit/src/createSlice.ts
@@ -1184,8 +1184,10 @@ export function buildCreateSlice<
1184
caseReducers: internalContext.sliceCaseReducersByName as any,
1185
getInitialState,
1186
...makeSelectorProps(reducerPath),
1187
- injectInto(injectable, { reducerPath: pathOpt, ...config } = {}) {
1188
- const newReducerPath = pathOpt ?? reducerPath
+ injectInto(
+ injectable,
1189
+ { reducerPath: newReducerPath = reducerPath, ...config } = {},
1190
+ ) {
1191
injectable.inject({ reducerPath: newReducerPath, reducer }, config)
1192
return {
1193
...slice,
0 commit comments