Reactjs – React Component – wait for prior promise method (fetch) to reach its finally {} block (cancelled using AbortController) before starting a new promise
I have a React component with 3 buttons representing 3 choices the user can make. If the user clicks a button and then another button I cancel the previous HTTP request using AbortController.signal.abort(), it is really incredibly simple. The thing…