We are able to cancel the fetch request by using AbortController with RxJS Observable. return Observable.create(observer => { // Create an AbortController to able to cancel the fetch request const controller = new AbortController(); // we need singal…