Notice
Recent Posts
Recent Comments
반응형
목록2018/05/12 (1)
오늘도 공부
React 사용시 Promise Cancel() 하는 경우
출처 : https://stackoverflow.com/questions/29478751/how-to-cancel-an-emcascript6-vanilla-javascript-promise-chainWhile there isn't a standard way of doing this in ES6, there is a library called Bluebird to handle this.There is also a recommended way described as part of the react documentation. It looks similar to what you have in your 2 and 3rd updates.const makeCancelable = (promise) => { let ha..
링크모음/React
2018. 5. 12. 16:56