Skip to content

Commit

Permalink
chore: show redux devtools extension only in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sboh1214 committed Mar 11, 2024
1 parent 76b2dfd commit 7c83800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7c83800

Please sign in to comment.