S
S
Swaerok2021-06-24 19:06:24
React
Swaerok, 2021-06-24 19:06:24

Redux devtools No store found in production, why?

The redux devtools does not work in the production, everything else works as it should. Both the project and redux devtools work in development, why?
This store

import { createStore, compose, applyMiddleware } from 'redux';
import rootReducer from './reducers';
import thunk from 'redux-thunk';

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(rootReducer, composeEnhancers(applyMiddleware(thunk)));

export default store;


Or is this how it should be and should not be displayed in the product?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Lewandowski, 2021-06-24
@vovaspace

Or is this how it should be and should not be displayed in the product?

Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question