score:0
You have to return the result of calling createAction
function in your action creator functions that is:
return createAction(SONGS_ACTION_TYPES.FETCH_SONGS_START);
instead of:
createAction(SONGS_ACTION_TYPES.FETCH_SONGS_START);
Source: stackoverflow.com
Related Query
- Redux thunk - Error ยท Actions must be plain objects. Use custom middleware for async actions even with dispatch an object with key type
- Redux 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 Error
- 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 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
- Redux Thunk + Axios "Actions must be plain objects. Use custom middleware for async actions."
- Actions must be plain objects. Use custom middleware for async actions Saga thunk I do have so far in my store
- 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
- Error: Actions must be plain objects. Use custom middleware for async actions. React-redux error
- react & redux with hooks: Actions must be plain objects. Use custom middleware for async actions
- Actions must be plain objects. Use custom middleware for async actions even thunk installed
- React redux Actions must be plain objects. Use custom middleware for async actions
- Async Action Redux Unhandled Rejection (Error): Actions must be plain objects. Use custom middleware for async actions
- Error server Error: Actions must be plain objects. Use custom middleware for async actions
- Actions Must be plain objects. Use Custom middleware for async actions when I already have thunk
- Use custom middleware for async actions. Actions must be plain objects
- Error - Actions must be plain objects. Use custom middleware for async actions
- what is this error message for ? 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
- Actions must be plain objects. Use custom middleware for async actions.how to solve this
- react-redux Error: 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
More Query from same tag
- React js get value of component's state from container
- How to add an ID to react-table function?
- How do you set displayName dynamically with a higher order component?
- How to display submenu links in React
- Submitting SUMMARY Data from Django to React using DRF
- React Hook useEffect has missing dependencies. Either include them or remove the dependency array
- How to output datocms graphql query with an array inside multiple posts
- How to useEffect when value in localStorage changed?
- Error while using searchKitManager in React
- Ensure that input value is string of alphabets in reactjs
- How to refactor React code to include less of 'this.state'
- Getting ID from div in React.js
- Unable to get the socket data through binance Websockets
- Split array of objects, to work with data points
- mapDispatchToProps not working. this.props.getCategories is not a function
- can I do many functions in one Onclick
- Unable to use Jest: SyntaxError: Unexpected identifier at Runtime.createScriptFromCode
- HTML select onChange doesn't fire when value changes
- Problems with babel loader in react-create-app
- How to create new variable instance with useState (React Hook) each time a user fires a specific action
- ReactJS Static File
- Using onClick function on a styled-components button doesn't change state until the second click (added sandbox URL)
- Typing a generic websocket handler
- Why does window.location not work in my react component?
- React componentDidMount() is fired on unMounted component
- React Query return undefined data while in network tab the data exists but it does not show on the page
- How to pass state from one component to another in React js?
- How to assign response from Api to an array using fetch function
- Trigger a function in another component on click a button from a different component in React
- React tutorial - firefox has error when loading data in array