Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. const store = createStore(reducers, LoadState, applyMiddleware(thunk) );
  2.  
  3. //Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function
  4.  
  5. const store = createStore(reducers, applyMiddleware(thunk) );
  6.  
  7. const composeEnhancers = LoadState || compose;
  8. const store = createStore(reducers, composeEnhancers( applyMiddleware(thunk) ) );
  9. //Error: Actions must be plain objects. Use custom middleware for async actions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement