Answers for "It looks like you are passing several store enhancers to createStore()"

1

Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.

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

const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const store = createStore(
  reducers,
  composeEnhancer(applyMiddleware(thunk)),
);

export default store;
Posted by: Guest on December-26-2019

Code answers related to "It looks like you are passing several store enhancers to createStore()"

Code answers related to "Javascript"

Browse Popular Code Answers by Language