Skip to content

Commit

Permalink
fix: remove redux-devtools-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Vsion committed Jan 15, 2024
1 parent 01fd96f commit af03de4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"react-layout-kit": "^1.7.4",
"react-redux": "^9.0.4",
"redux": "^5.0.1",
"redux-devtools-extension": "^2.13.9",
"ua-parser-js": "2.0.0-alpha.2"
},
"devDependencies": {
Expand Down
11 changes: 0 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { applyMiddleware, configureStore } from '@reduxjs/toolkit';
'use client';

import { configureStore } from '@reduxjs/toolkit';
import { useMemo } from 'react';
import { composeWithDevTools } from 'redux-devtools-extension';

let store: any;

Expand Down Expand Up @@ -34,7 +35,7 @@ function initStore(preloadedState = initialState) {
return configureStore({
reducer,
preloadedState,
enhancer: composeWithDevTools(applyMiddleware()),
devTools: process.env.NODE_ENV !== 'production',
});
}

Expand Down

0 comments on commit af03de4

Please sign in to comment.