It's the same approch for redux. And I think Axios provide a cancel function.
But I don't see a need for, never used Cancel kind of fun before also built some stuffs in React-Redux never saw console with such errors.......
const listArticles =()=> async(dispatch)=>{ try{ dispatch({type: ARTICLE_LIST_REQUEST}); const {data}= await axios.get('https://dev.to/api/articles?username=hemant') dispatch({type:ARTICLE_LIST_SUCCESS, payload: data}) } catch(error){ dispatch({type:ARTICLE_LIST_FAIL, payload:error.message}) } }
I feel like your talking about dispatch........
+1. I am really new to React about 3-4 Months and would like to know in redux
This thing happens every time if you are using react hooks: reactjs.org/docs/hooks-intro.html
Thanks × 1000 👍.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's the same approch for redux. And I think Axios provide a cancel function.
But I don't see a need for, never used Cancel kind of fun before also built some stuffs in React-Redux never saw console with such errors.......
I feel like your talking about dispatch........
+1. I am really new to React about 3-4 Months and would like to know in redux
This thing happens every time if you are using react hooks: reactjs.org/docs/hooks-intro.html
Thanks × 1000 👍.