From 7c83800df1b820d7b28137647cc9bff2f7b745b6 Mon Sep 17 00:00:00 2001 From: Seungbin Oh Date: Mon, 11 Mar 2024 17:55:32 +0900 Subject: [PATCH] chore: show redux devtools extension only in dev --- src/App.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 867d647..8a3406a 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -55,7 +55,9 @@ const store = createStore( writeReviews: writeReviewsReducer, planner: plannerReducer, }), - window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), + process.env.NODE_ENV === 'development' + ? window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() + : null, ); class App extends Component {