Skip to content

Commit

Permalink
feat: remove unused global variable (#51767)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lantianyou committed Jul 22, 2023
1 parent 94878fe commit 04e46cb
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions examples/with-redux/lib/redux/store.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/* Core */
import {
configureStore,
type ConfigureStoreOptions,
type ThunkAction,
type Action,
} from '@reduxjs/toolkit'
import { configureStore, type ThunkAction, type Action } from '@reduxjs/toolkit'
import {
useSelector as useReduxSelector,
useDispatch as useReduxDispatch,
Expand All @@ -15,16 +10,6 @@ import {
import { reducer } from './rootReducer'
import { middleware } from './middleware'

const configureStoreDefaultOptions: ConfigureStoreOptions = { reducer }

export const makeReduxStore = (
options: ConfigureStoreOptions = configureStoreDefaultOptions
) => {
const store = configureStore(options)

return store
}

export const reduxStore = configureStore({
reducer,
middleware: (getDefaultMiddleware) => {
Expand Down

0 comments on commit 04e46cb

Please sign in to comment.