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 c04e470 commit f5c46a2Copy full SHA for f5c46a2
packages/toolkit/src/createSlice.ts
@@ -795,9 +795,9 @@ export function buildCreateSlice({ creators }: BuildCreateSliceConfig = {}) {
795
options.selectors ?? {}
796
)) {
797
map[name] = wrapSelector(
798
- getInitialState,
799
selector,
800
selectState,
+ getInitialState,
801
injected
802
)
803
}
@@ -836,9 +836,9 @@ export function buildCreateSlice({ creators }: BuildCreateSliceConfig = {}) {
836
837
838
function wrapSelector<State, NewState, S extends Selector<State>>(
839
- getInitialState: () => State,
840
selector: S,
841
selectState: Selector<NewState, State>,
+ getInitialState: () => State,
842
injected?: boolean
843
) {
844
function wrapper(rootState: NewState, ...args: any[]) {
0 commit comments