Closed RuiLopes98 closed 4 years ago
it is weird. you use thunk as middleware. did you checm=k your code with my PR for this lesson?
it is weird. you use thunk as middleware. did you checm=k your code with my PR for this lesson?
I already solved it, I had a typing error in productActions.js:
dispatch(PRODUCT_LIST_REQUEST);
And did correct it to:
dispatch({type: PRODUCT_LIST_REQUEST});
@RuiLopes98 I also had the same issue. Thanks for opening this !
Hello, guys!
I'm getting this error on the Redux DevTools: error:"Actions must be plain objects. Use custom middleware for async actions."
As you can see, I used thunk in the applyMiddleWare and did import it on the top of the code!
Is this happening with someone?
This is my store.js code:
And this is my productionActions.js: