-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compose with redux dev tools in development mode only #1085
Conversation
src/state/create-store.js
Outdated
const composeEnhancers = | ||
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ | ||
isDevelopment && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
process.env.NODE_ENV !== 'production'
Sometimes there are other env strings used that are not development such as 'test'
src/state/create-store.js
Outdated
@@ -20,8 +20,12 @@ import type { Store } from './store-types'; | |||
// We are checking if window is available before using it. | |||
// 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 isDevelopment: boolean = process.env.NODE_ENV === 'development'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const isDevelopment: boolean = process.env.NODE_ENV === 'development'; |
src/state/create-store.js
Outdated
const composeEnhancers = | ||
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ | ||
isDevelopment && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isDevelopment && | |
process.env.NODE_ENV !== 'production' && |
Thanks!!! |
This will go out in the next release (some time in the next two weeks 🤞 ) |
Thanks @alexreardon for taking a look, great work on this package btw 🥇 |
No description provided.