score:0
Accepted answer
It seems that the code is currently broken, you can fix this issue by change:
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION__ || compose;
const store = createStore(burgerBuilderReducer, composeEnhancers(
applyMiddleware(thunk)
));
with:
const store = createStore(
rootReducer,
//composeEnhancers(applyMiddleware(thunk)) // => NOTE: This would break the code!
// Thisone instead will work fine...
compose(
applyMiddleware(
thunk
// Other middlewares
),
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() // Chrome debugger
)
);
Source: stackoverflow.com
Related Query
- what is this error message for ? Actions must be plain objects. Use custom middleware for async actions
- I'm using a useDispatch custom hook and getting this error in my test: Actions must be plain objects. Use custom middleware for async actions
- React-Redux: Actions must be plain objects. Use custom middleware for async actions Error
- Actions must be plain objects. Use custom middleware for async actions.how to solve this
- Redux Error Actions must be plain objects. Use custom middleware for async actions
- Redux thunk - Error ยท Actions must be plain objects. Use custom middleware for async actions even with dispatch an object with key type
- Error: Actions must be plain objects. Use custom middleware for async actions. React-redux error
- Error server Error: Actions must be plain objects. Use custom middleware for async actions
- Use custom middleware for async actions. Actions must be plain objects
- Error - Actions must be plain objects. Use custom middleware for async actions
- React-Redux: Actions must be plain objects. Use custom middleware for async actions
- Unit test: Actions must be plain objects. Use custom middleware for async actions
- CreateAsyncThunk Error: Actions must be plain objects. Use custom middleware for async actions
- React-Redux-Saga: Actions must be plain objects. Use custom middleware for async actions
- React-Redux - Unhandled Rejection (Error): Actions must be plain objects. Use custom middleware for async actions
- react-redux Error: Actions must be plain objects. Use custom middleware for async actions
- Redux Actions must be plain objects. Use custom middleware for async actions
- React Redux Saga: Actions must be plain objects. Use custom middleware for async actions
- redux-observable + socket.io: Actions must be plain objects. Use custom middleware for async actions
- Error: Actions must be plain objects. Use custom middleware for async actions.
- Actions must be plain objects. Use custom middleware for async actions - Lost Here
- Actions must be plain objects. Use custom middleware for async actions
- How to fix: Error: Actions must be plain objects. Use custom middleware for async actions.?
- Error with redux-promise : Actions must be plain objects. Use custom middleware
- Redux-Thunk Error: Actions must be plain objects. Use custom middleware for async actions
- Redux error: Actions must be plain objects. Use custom middleware for async actions
- Problem with redux middleware - Error: Actions must be plain objects. Use custom middleware for async actions
- Error: Actions must be plain objects. Use custom middleware for async actions. But I don`t have async functions
- React/Redux: Error: Actions must be plain objects. Use custom middleware for async actions
- Can't beat the "Actions must be plain objects. Use custom middleware for async actions." error while trying to follow redux.js.org tutorial
More Query from same tag
- how to make text responsive to its container?
- react router show root component as well as routed path
- Why react rerendres components even if props didn't changed?
- Role-dependent user login
- Get React root url path
- Is there a way to not have part of canvas reload every time state is changed in React?
- how to prevent react router multiple component
- How to pass uid as a parameter in firebase? React+Firebase
- Next.js app with both Javascript and Typescript
- Can't use require() method that receives a prop in React
- React Loadable doesn't update on browser refresh
- Dynamic header child component in react/redux application
- Drawing SVG shape with mouse using React
- Cant passing props via React Router
- I get the error 'Request failed with status code 400' when I use axios
- Render react component inside Blazor page
- Setting up a twitter button return [object Object] instead of the value
- Can't resolve anchor tag
- Setting state to be the value of the label of a radio button
- import assets issue, electron forge
- Showing a rtsp stream on React Frontend
- How do you use an SVG inline in React using Parcel 2?
- Assign local state value to redux state value?
- React Warning: Cannot update during an existing state transition. Search component
- How to test onClick event that is not passed as a prop
- Combining 2 arrays into their own arrays React
- How can I pass a unique identifier from my express backend server to my frontend reactjs to be displayed in my web application?
- Axios.post returning :ERR_EMPTY_RESPONSE after API call
- Perform function and then also perform whatever is passed as prop, ReactJS
- How to transform async data in mapStateToProps?