You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constactionSomething=()=>(dispatch,getState)=>{dispatch(/* pending like action type */);try{constdata=async()=>{returnawaitfetch('URL').then(response=>response.data).catch(err=>err);}}catch(err){returndispatch(/* failed like action */);}returndispatch(/* success like action */);}
do I need use redux thunk with this middle where if my action creator calls store.dispatch/dispatch before calling an async function/arrow function?
The text was updated successfully, but these errors were encountered: