I have a react-redux app that is running fine in chrome but in firefox it is showing blank screen.
For the same request in the network tab, firefox is giving status code 304 whereas in chrome it's 200.
As I am using the redux store,I have used below code for creating redux store.
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(rootReducer,composeEnhancers(applyMiddleware(thunk)));
If I use below code for creating composeEnhancers then it's value is coming "undefined " and code fails in firefox .But this also works fine in chrome.
const composeEnhancers = process.env.NODE_ENV === 'development'? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ :null || compose;
Firefox error:
Download the React DevTools for a better development experience
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.