diff --git a/webapp/channels/src/packages/mattermost-redux/src/store/configureStore.ts b/webapp/channels/src/packages/mattermost-redux/src/store/configureStore.ts index 506e476a53..77123b586b 100644 --- a/webapp/channels/src/packages/mattermost-redux/src/store/configureStore.ts +++ b/webapp/channels/src/packages/mattermost-redux/src/store/configureStore.ts @@ -8,7 +8,7 @@ import { Store, } from 'redux'; import thunk from 'redux-thunk'; -import {composeWithDevToolsDevelopmentOnly} from '@redux-devtools/extension'; +import {composeWithDevTools} from '@redux-devtools/extension'; import {GlobalState} from '@mattermost/types/store'; @@ -39,7 +39,7 @@ export default function configureStore({ ...preloadedState, }; - const composeEnhancers = composeWithDevToolsDevelopmentOnly({ + const composeEnhancers = composeWithDevTools({ shouldHotReload: false, trace: true, traceLimit: 25, diff --git a/webapp/channels/src/stores/redux_store.jsx b/webapp/channels/src/stores/redux_store.jsx index 4cac262f59..8a38c976d7 100644 --- a/webapp/channels/src/stores/redux_store.jsx +++ b/webapp/channels/src/stores/redux_store.jsx @@ -8,9 +8,8 @@ import configureStore from 'store'; const store = configureStore(); -// eslint-disable-next-line no-process-env -if (process.env.NODE_ENV !== 'production' || window.location.origin === 'https://community.mattermost.com') { - window.store = store; -} +// Export the store to simplify debugging in production environments. This is not a supported API, +// and should not be relied upon by plugins. +window.store = store; export default store;