From 7db37ee1a97bf86af83e8baf004b587eca8c0c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B0=E5=A4=A9=E6=B8=B8?= Date: Sun, 25 Jun 2023 11:04:26 +0800 Subject: [PATCH 1/2] feat: remove unused global variable --- examples/with-redux/lib/redux/store.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/examples/with-redux/lib/redux/store.ts b/examples/with-redux/lib/redux/store.ts index 0d23fc8f509ba..aac6cfe7ca13e 100644 --- a/examples/with-redux/lib/redux/store.ts +++ b/examples/with-redux/lib/redux/store.ts @@ -1,7 +1,6 @@ /* Core */ import { configureStore, - type ConfigureStoreOptions, type ThunkAction, type Action, } from '@reduxjs/toolkit' @@ -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) => { From dded6a646e830313035c89290ad19020950bf17e Mon Sep 17 00:00:00 2001 From: Lantianyou Date: Fri, 21 Jul 2023 08:59:14 +0800 Subject: [PATCH 2/2] feat: run formatter --- examples/with-redux/lib/redux/store.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/with-redux/lib/redux/store.ts b/examples/with-redux/lib/redux/store.ts index aac6cfe7ca13e..8083355d894fb 100644 --- a/examples/with-redux/lib/redux/store.ts +++ b/examples/with-redux/lib/redux/store.ts @@ -1,9 +1,5 @@ /* Core */ -import { - configureStore, - type ThunkAction, - type Action, -} from '@reduxjs/toolkit' +import { configureStore, type ThunkAction, type Action } from '@reduxjs/toolkit' import { useSelector as useReduxSelector, useDispatch as useReduxDispatch,