I'm trying to login and signup in react. using react-redux, thunk v3.1.0, but getting error
my auth.types.js file include

Auth.action.js include
auth.reducer.js include
store.js has
[![enter image description here][4]][4]
login.jsx include loginHandle
how can I solve this error




The issue here is that the code is attempting to dispatch the
formDataobject as an action payload.formDatais an object with an undefinedtypeproperty, thus the error you see.loginAPIis an action creator that is defined to to first receive theformDatapayload and return the asynchronous action, i.e. Thunk, that is passed the store'sdispatchfunction.You should be dispatching the
loginAPIaction to the store.If you would like to wait for the asynchronous
loginAPIaction to complete prior to navigating then you may want toawaitit's settling.Be aware also that you are using outdated Redux. Modern Redux is written using Redux-Toolkit which is less boilerplatey and generates a lot of the actions for you so you end up writing significantly less code.