Skip to content

Commit f5c46a2

Browse files
committed
change order of arguments
1 parent c04e470 commit f5c46a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolkit/src/createSlice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,9 @@ export function buildCreateSlice({ creators }: BuildCreateSliceConfig = {}) {
795795
options.selectors ?? {}
796796
)) {
797797
map[name] = wrapSelector(
798-
getInitialState,
799798
selector,
800799
selectState,
800+
getInitialState,
801801
injected
802802
)
803803
}
@@ -836,9 +836,9 @@ export function buildCreateSlice({ creators }: BuildCreateSliceConfig = {}) {
836836
}
837837

838838
function wrapSelector<State, NewState, S extends Selector<State>>(
839-
getInitialState: () => State,
840839
selector: S,
841840
selectState: Selector<NewState, State>,
841+
getInitialState: () => State,
842842
injected?: boolean
843843
) {
844844
function wrapper(rootState: NewState, ...args: any[]) {

0 commit comments

Comments
 (0)