Skip to content

Commit

Permalink
feat: remove unused global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Lantianyou committed Jun 25, 2023
1 parent 5e36c34 commit 7db37ee
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions examples/with-redux/lib/redux/store.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Core */
import {
configureStore,
type ConfigureStoreOptions,
type ThunkAction,
type Action,
} from '@reduxjs/toolkit'
Expand All @@ -15,16 +14,6 @@ import {
import { reducer } from './rootReducer'
import { middleware } from './middleware'

const configreStoreDefaultOptions: ConfigureStoreOptions = { reducer }

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

return store
}

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

0 comments on commit 7db37ee

Please sign in to comment.