Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
 
PREVIOUS NEXT
Tagged: #It #passing #store #enhancers #This #compose #single
ADD COMMENT
Topic
Name
9+1 =