Skip to content

Commit

Permalink
compose with redux dev tools in development mode only (#1085)
Browse files Browse the repository at this point in the history
* compose with redux dev tools in development mode only

* prettier

* address feedback
  • Loading branch information
teleaziz authored and alexreardon committed Jan 30, 2019
1 parent fc61e8a commit adc5a2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/state/create-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import type { Store } from './store-types';
// This is needed for universal apps that render the component server side.
// Details: https://github.com/zalmoxisus/redux-devtools-extension#12-advanced-store-setup
const composeEnhancers =
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
process.env.NODE_ENV !== 'production' &&
typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
: compose;

Expand Down

0 comments on commit adc5a2e

Please sign in to comment.