Skip to content

Commit

Permalink
unshift, not prepend
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed May 2, 2023
1 parent ed3ba43 commit b69e9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/src/getDefaultMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function getDefaultMiddleware<
actionCreatorOptions = actionCreatorCheck
}

middlewareArray.prepend(
middlewareArray.unshift(
createActionCreatorInvariantMiddleware(actionCreatorOptions)
)
}
Expand Down

0 comments on commit b69e9df

Please sign in to comment.