adobe / acc-js-sdk

A JavaScript SDK for Adobe Campaign Classic
Apache License 2.0
21 stars 20 forks source link

Neo 53889 adding abortable support #74

Closed infinity1013 closed 1 year ago

infinity1013 commented 1 year ago

Description

Currently there is no way to abort a request from the client. For example:

UI makes requests to fetch the data While the call is in progress, the UI component unmounts/redirects to some other component. While un-mounting, the UI should be able to cancel pending HTTP calls to avoid unnecessary attempts to re-render.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

gauravmakkar commented 1 year ago

@infinity1013 don't you think the docs should be updated for the usage of this feature? It should be added even in the best practises as well.